Skip to content

Transformations as operations on OpenSCADObjects - #66

Closed
scifuentes wants to merge 2 commits into
SolidCode:masterfrom
scifuentes:cascade_transformations
Closed

Transformations as operations on OpenSCADObjects#66
scifuentes wants to merge 2 commits into
SolidCode:masterfrom
scifuentes:cascade_transformations

Conversation

@scifuentes

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

@etjones etjones closed this Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants