 |
MeshOctTreeNodeOptimize Method |
Optimize method optimizes this oct tree node and its child nodes.
It is possible to remove empty child nodes and in case of a single child node move its triangles to this node.
This method is automatically called from the MeshOctTree constructor.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntaxpublic void Optimize(
bool removeEmptyChildNodes = true,
bool moveSingleChildToParent = true
)
Parameters
- removeEmptyChildNodes Boolean (Optional)
- when true empty nodes (nodes without any triangles) are removed from children
- moveSingleChildToParent Boolean (Optional)
- when true and there is only one child, it is removed and its triangles are moved to parent node
See Also