class Enlighten InputOctreeBuilder

This is the documentation for Enlighten.

class Enlighten InputOctreeBuilder

class Enlighten::InputOctreeBuilder

 

Builds an octree.

Functions

Name

Description

GetBoundingBox()

Gets the bounding box.

GetSubtreeOffset(const PrecompVoxelOctreePath &, Geo::u32, float)

Gets the offset of the origin of a subtree relative to the entire octree.

GetVoxel(const PrecompVoxelOctreePath &)

Gets the voxel at the given path.

GetVoxel(const PrecompVoxelOctreePath &, const Geo::u32)

Gets the voxel at the given path and octant.

GetVoxelPosition(const PrecompVoxelId &)

Gets the position of the given voxel.

GetVoxelPosition(const PrecompVoxelOctreePath &, const Geo::u32)

Gets the position of the given voxel.

GetVoxelSize(const PrecompVoxelOctreePath &, const Geo::u32)

Gets the size of the given voxel.

InputOctreeBuilder(const PrecompVoxelOctreeVolume &, SerialisedOctreeVolume &)

Constructor.

operator=(const InputOctreeBuilder &)

Assignment.

PrecompVoxelOctree(const Geo::u32)

Constructor.

PrecompVoxelOctreeVolume(const Geo::u32, const Geo::v128, const float)

Constructor.

PrecompVoxelOctreeVolume(const Geo::u32, const Geo::v128, const Geo::v128, const float)

Constructor.

Variables

Name

Description

Geo::v128 m_Basis[3]

Basis vectors of this volume.

Geo::v128 m_Origin

Origin of this volume.

Geo::u32 m_VoxelDepth

Depth of the voxel.

float m_VoxelSize

Size of this voxel.

Geo::Matrix m_VoxelToWorld

Matrix transform from voxel space to world space.

Geo::Matrix m_WorldToVoxel

Matrix transform from world space to voxel space.

 

Geo::GeoNonAABoundingBox Enlighten::PrecompVoxelOctreeVolume::GetBoundingBox


public: Geo::GeoNonAABoundingBox GetBoundingBox() const


Gets the bounding box.

 

static Geo::v128 Enlighten::PrecompVoxelOctreeVolume::GetSubtreeOffset


public: Geo::v128 GetSubtreeOffset
(
    const PrecompVoxelOctreePath & subtreePath,
    Geo::u32 globalDepth,
    float voxelSize
)


Gets the offset of the origin of a subtree relative to the entire octree.

 

PrecompVoxelId Enlighten::PrecompVoxelOctree::GetVoxel