Slicer Discord
OpenSCAD - Python Edition – 3D-Druckmodell von Thingiverse Thingiverse

OpenSCAD - Python Edition

von gigl
2 Downloads
6 Likes
0 Makes
Zum Modell
OpenSCAD is very powerful, but its also very limited, because variables can only be assigned once and trick workarounds are required to overcome this shortness. Why dont use another interpreter - like Python ?
Python has all the options you like and you can do clever things before rendering your 3D shapes( e.g. calculate the bits of an QR code)

This Variant is still under heavy development, but it already available for testing. Following commands are already available. My plan is to implement all of them and even more

These are the commands which are already available:

cube cylinder sphere
translate rotate
union intersection difference
square circle
linear_extrude rotate_extrude
A possible working program looks like

def foot(x,y):
c=cube([1,1,10])
return translate(c,[x,y,0])

def plate():
return cube([11,11,1])

parts=[]
parts.append(translate(plate(),[0,0,10]))

for y in [0,10]:
for x om [0,10]:
parts.append(foot(x,y]))

output(union(parts))
Quelle
Thingiverse
Was du zum Drucken brauchst: Anfänger Niedrige Konfidenz
Einteilig
Supports 1/3
Zusammenbau 0/3
Einstellungen 1/3
Druckbett 0/3
Nachbearbeitung 0/3
Drucker
FDM / FFF
Dateiformat
STL
Material
PLA, TPU
Software
Cura, PrusaSlicer o. Ä.
Noch keine Bewertungen
Noch keine Kommentare – sei der Erste!
Feed Blog Slicer Kostenrechner Bildersuche Einreichen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Zur Sammlung hinzufügen