* Class: Gfx3TreePartition
#author("2024-02-10T19:15:40+00:00","","")

The `Gfx3TreePartition` class implements a binary tree space partition in 3D graphics system.
- inherit from: TreePartition~
** Constructors
- ''new Gfx3TreePartition''(maxChildren: number, maxDepth: number, aabb: Gfx3BoundingBox): Gfx3TreePartition~
The constructor.~
-- ''maxChildren'': The `maxChildren` parameter specifies the maximum number of children
that a node in the tree can have before it needs to be split into multiple nodes.~
-- ''maxDepth'': The `maxDepth` parameter specifies the maximum depth of the tree. It
determines how many levels the tree can have.~
-- ''aabb'': The top bounding box of the tree partition space.~
** Methods
- ''addChild''(object: Gfx3BoundingBox): void~
The "addChild" function adds an object as a child to the tree.~
-- ''object'': The parameter `object` is of type T, which means it can be any type.~
~
- ''getMaxChildren''(): number~
The "getMaxChildren" function returns the maximum number of children per nodes.~
~
- ''getMaxDepth''(): number~
The "getMaxDepth" function returns the maximum depth of the partition tree.~


Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes