Click or drag to resize
Ab4d.SharpEngine logo

MeshOctreeNodeOptimize Method

Optimize method optimizes this octree 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 MeshOctree constructor.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public 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