Transformations as operations on OpenSCADObjects by scifuentes · Pull Request #66 · SolidCode/SolidPython
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))
Alternatively *args, **kargs can be used to reduce code maintainability, but the having the doc-string is convenient .. and the painful part to maintain :/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters