![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <OccupancyGrid3.h>
Public Types | |
| enum class | EDomain : int32 { Exterior , Boundary , Interior } |
| An enum representing a voxel's classification. More... | |
Public Member Functions | |
| template<typename MeshType > | |
| FOccupancyGrid3 (const MeshType &InMesh, const int32 InVoxelResolution) | |
| FVector3i | GetCellIndexFromPoint (const FVector &InPoint) const |
| FVector3f | GetCellCenterFromIndex (const FVector3i &Index) const |
| FBox3f | GetCellBoxFromIndex (const FVector3i &Index) const |
| const TDenseGrid3< EDomain > & | GetOccupancyStateGrid () const |
| Returns a reference to the occupancy grid. | |
| float | GetCellSize () const |
Sample mesh occupancy in a voxel grid by using the mesh's winding number, on voxel corners, to determine whether the voxel is fully contained within the interior of the mesh, touches the mesh's boundary, or is fully contained on the exterior of the mesh.
|
strong |
An enum representing a voxel's classification.
|
inline |
Given an index into the occupancy grid, returns the bbox that represents the cell in the winding number grid, from which the occupancy got computed.
|
inline |
Given an index into the occupancy grid, returns the midpoint of the bbox that represents the matching cell in the winding number grid, from which the occupancy got computed.
|
inline |
Given a point in space, return a computed index into the occupancy grid. If the point is outside of the mesh's bounding box, the given index will be outside the range of the occupancy grid. To check for validity, test against the occupancy grid's extents as returned by GetOccupancy.
|
inline |
|
inline |
Returns a reference to the occupancy grid.