mrdoob/three.js — Issue #967: custom heirarchies
Author: timothypratley
Created: 2011-12-27 01:21:43+00:00
State: open

Hi,

I have a hierarchy that currently consists of primitive geometries
Icosahedron -> 12 cube children -> 6 Tetrahedron children
Which works great, but now I want my squares to have some extra geometry associated with them, an inner cube, which of course I can just add as children but this breaks the logical hierarchy.
What I really want to do is use logical groups
top -> 12 middle -> 6 bottom
where middle consists of two cubes

Is there a way to differentiate 'logical' children without creating a completely separate graph? I suppose I could flag objects that are logical groups... in my case that may be tricky because I rely on the logical children being is a particular order... so I'm fishing for better alternatives :)

Regards,
Timothy