| Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables |
TVRMLShapeStateOctree — octree that provides hierarchical view of all ShapeState structures of a given TVRMLScene object.
Don't confuse it with TVRMLTriangleOctree from unit VRMLTriangleOctree: TVRMLTriangleOctree is an octree based on scene triangles, while TVRMLShapeStateOctree is an octree based on scene ShapeStates. A scene usually has much more (e.g. 100 000, but this is really only an example) triangles than ShapeStates (e.g. 100-1000, but this is really only an example).
If you want to work of triangle-by-triangle basis, use TVRMLTriangleOctree. But if you want to work with higher-level objects, ShapeStates, use this class, TVRMLShapeStateOctree.
This octree is the key structure to do scene culling (e.g. to camera frustum) on a ShapeState-basis, as used by TVRMLGLScene.
| Name | Description |
|---|---|
Class TVRMLShapeStateOctreeNode |
|
Class TVRMLShapeStateOctree |
DefShapeStateOctreeMaxDepth = 5; |
DefShapeStateOctreeMaxLeafItemsCount = 10; |
DefShapeStateOctreeMaxDepth = 5; |
DefShapeStateOctreeMaxLeafItemsCount = 10; |