Slicer Discord
OpenSCAD - Python Edition – Modello 3D stampabile da Thingiverse Thingiverse

OpenSCAD - Python Edition

di gigl
2 Download
6 Likes
0 Makes
Vai al Modello
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))
Fonte
Thingiverse
Cosa serve per stampare: Principiante Bassa affidabilità
Pezzo unico
Supporti 1/3
Assemblaggio 0/3
Impostazioni 1/3
Dimensioni piano 0/3
Post-lavorazione 0/3
Stampante
FDM / FFF
Formato file
STL
Materiale
PLA, TPU
Software
Cura, PrusaSlicer o simile
Ancora nessuna valutazione
Ancora nessun commento – sii il primo!
Feed Blog Slicer Calcolatore Ricerca per immagine Invia Contatto Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Aggiungi alla collezione