SolidCode / SolidPython

A python frontend for solid modelling that compiles to OpenSCAD
1.11k stars 173 forks source link

Transformations as operations on OpenSCADObjects #66

Closed scifuentes closed 1 year ago

scifuentes commented 7 years ago

Syntax sugar: Adds normal transformations in cascade style to all OpenSCADObjects allows:

cube(1).translate([1,0,0]).color('red')
cube(1).hull(cylinder(1))
scifuentes commented 7 years ago

Alternatively *args, **kargs can be used to reduce code maintainability, but the having the doc-string is convenient .. and the painful part to maintain :/