< Zurück | Inhalt | Weiter >

5.1.2 Geometry merging

Geometry merging attempts to minimize the number of discrete Shape3D objects in the scenegraph. A scenegraph will benefit from geometry merging if the Shape3D objects fulfill the following criteria:


Many Shape3Ds with the same attributes and TGs

Shape3Ds that do not use indexed geometry

Shape3Ds with no capability bits set on their Appearances

Shape3Ds without the pickable property


The compilation process will sort and attempt to merge the static subgraphs in the scenegraph. Dynamic subgraphs, that is, Nodes with writable attributes (such as Group.ALLOW_CHILDREN_WRITE), will have their static child Nodes processed while ignoring the dynamic child Nodes.