Welcome! Log In Create A New Profile

Advanced

OpenSCAD - child(), accessing attributes?

Posted by MichaelAtOz 
OpenSCAD - child(), accessing attributes?
September 18, 2012 11:39PM
Hi,

I want to write a scad module to take the child/ren and manipulate them, but I need to know something about them, in this case the dimension on one of the axis so I can use an 'if' to do different things.

Specifically the module is to take an object cut it in half (or rather make two objects with different intersection/difference spaced apart) and rotated so the cut face is down. Thus allowing an irregular object to be 3D Printed.
The objects are all, but one, to be sliced at a given plane, but the other needs a different plane, it can be distinguished by its Y axis size is larger.

Is there any way to access child() attributes?

Yes I could do two modules, but where's the fun/learning?

Michael
Re: OpenSCAD - child(), accessing attributes?
September 19, 2012 06:22AM
No there is no way to do that in openscad.


[www.hydraraptor.blogspot.com]
Sorry, only registered users may post in this forum.

Click here to login