@Thomthom: Great thread! All this OOP and geometry, I can't help but feel it verges on mental masturbation π . It's almost metaphysical. I'll be using a bit of code from that thread. Thanks
@TIG: The short answer is I'm trying to find the transformation of a lot of things. I'll give you some background. I'm trying to create a kind of project space for CNC manufacturing. The hiearchy looks something like this.
->MODEL
--->ASSEMLY (Group/Component)
----->WORKPIECE (Component)
------->DESIGN (Group)
--------->TOOLPATH (Group/Component)
----------->HOLE (Group/Component)
Some things are forbidden. A toolpath can't contain any other groups or instances, a workpiece can't contain another workpiece. But I want to allow the user to further nest whatever they want. This means a workpiece can have a group of toolpaths or an assembly can have workpieces that are nested in other groups.
At the risk of rambling on, I'll leave it at that. Let me know if I'm not clear (which is often the case when I try to explain anything related to OOP π )