Unit VRMLShapeStateOctree

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

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.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TVRMLShapeStateOctreeNode  
Class TVRMLShapeStateOctree  

Constants

DefShapeStateOctreeMaxDepth = 5;
DefShapeStateOctreeMaxLeafItemsCount = 10;

Description

Constants

DefShapeStateOctreeMaxDepth = 5;
 
DefShapeStateOctreeMaxLeafItemsCount = 10;
 

Generated by PasDoc 0.11.0 on 2008-09-12 11:58:46