This is the documentation for Enlighten.
└>Enlighten::PrecompVoxelOctree
A volume voxel in an octree.
| 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. |
| Name | Description |
|---|---|
| GetBoundingBox() | Gets the bounding box. |
| 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. |
| GetVoxelOrigin() | Return the offset in voxels from the world origin to the octree origin. |
| 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. |
| 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. |
public: Geo::GeoNonAABoundingBox GetBoundingBox() const
Gets the bounding box.
public: PrecompVoxelId GetVoxel
(
const PrecompVoxelOctreePath & path
) const
Gets the voxel at the given path.
public: PrecompVoxelId GetVoxel
(
const PrecompVoxelOctreePath & path,
const Geo::u32 octant
) const
Gets the voxel at the given path and octant.
public: Geo::GeoPoint3D GetVoxelOrigin() const
Return the offset in voxels from the world origin to the octree origin.
public: Geo::v128 GetVoxelPosition
(
const PrecompVoxelId & voxel
) const
Gets the position of the given voxel.
public: Geo::v128 GetVoxelPosition
(
const PrecompVoxelOctreePath & path,
const Geo::u32 octant
) const
Gets the position of the given voxel.
public: Geo::v128 GetVoxelSize
(
const PrecompVoxelOctreePath & path,
const Geo::u32 octant
) const
Gets the size of the given voxel.
public: PrecompVoxelOctree
(
const Geo::u32 voxelDepth
)
Constructor.
public: PrecompVoxelOctreeVolume
(
const Geo::u32 voxelDepth,
const Geo::v128 origin,
const float voxelSize
)
Constructor.
public: PrecompVoxelOctreeVolume
(
const Geo::u32 voxelDepth,
const Geo::v128 origin,
const Geo::v128 basis,
const float voxelSize
)
Constructor.