Builds an octree.
Name | Description |
---|---|
CalculateVoxelBox(const PrecompVoxelOctreePath) | bounding box of the voxel |
CalculateVoxelBox(const PrecompVoxelId) | bounding box of the voxel |
Compute(const PrecompOutputSystem *const *, const Geo::s32) | builds the octree and subdivides it, testing against geometry |
GetAllNodes() | all octree nodes at all depths |
GetBoundingBox() | octree bounding box |
GetDepth() | octree depth |
GetLeafNodes() | octree leaf nodes |
GetName() | Gets the name. |
GetRootNode() | octree root node |
GetVoxelNode(const PrecompVoxelId) | check if voxel is a leaf node in the octree |
GetVoxelSize() | voxel size of the octree |
Initialise(const Geo::GeoNonAABoundingBox &, const float) | initialise the octree builder |
SetName(const char *) | Sets the name. |
public: Geo::GeoNonAABoundingBox CalculateVoxelBox
(
const PrecompVoxelOctreePath path
) const
bounding box of the voxel
public: Geo::GeoNonAABoundingBox CalculateVoxelBox
(
const PrecompVoxelId voxelId
) const
bounding box of the voxel
public: bool Compute
(
const PrecompOutputSystem *const * systems,
const Geo::s32 numSystems
)
builds the octree and subdivides it, testing against geometry
public: const Geo::GeoArray< OctreeNode * > & GetAllNodes() const
all octree nodes at all depths
public: Geo::GeoNonAABoundingBox GetBoundingBox() const
octree bounding box
public: Geo::u32 GetDepth() const
octree depth
public: const Geo::GeoArray< OctreeNode * > & GetLeafNodes() const
octree leaf nodes
public: const char * GetName() const
Gets the name.
public: const OctreeNode * GetRootNode() const
octree root node
public: OctreeNode * GetVoxelNode
(
const PrecompVoxelId voxelId
) const
check if voxel is a leaf node in the octree
public: float GetVoxelSize() const
voxel size of the octree
public: bool Initialise
(
const Geo::GeoNonAABoundingBox & volumeBox,
const float voxelSize
)
initialise the octree builder
public: void SetName
(
const char * name
)
Sets the name.