Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/OccupancyGrid3.h |
| Include | #include "Spatial/OccupancyGrid3.h" |
Syntax
struct FOccupancyGrid3
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FOccupancyGrid3
(
const MeshType& InMesh, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FBox3f | GetCellBoxFromIndex
(
const FVector3i& Index |
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. | |
| FVector3f | GetCellCenterFromIndex
(
const FVector3i& Index |
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. | |
| FVector3i | GetCellIndexFromPoint
(
const FVector& InPoint |
Given a point in space, return a computed index into the occupancy grid. | |
| float | GetCellSize () |
Returns the size of the cell. The cell size is uniform on each axis. | |
| const TDenseGrid3< EDomain > & | Returns a reference to the occupancy grid. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EDomain | An enum representing a voxel's classification. |