Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshConvexHull
Description
Choose a more or less evenly-spaced subset of mesh vertices. Conceptually, this function creates a uniform grid with given cell size. (Cell size is given roughly as a percentage of the total mesh bounding box.) Each grid cell can hold up to one vertex. Return the set of representative vertices, maximum one per cell.
| Name | GridSample |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshConvexHull.h |
| Include Path | #include "Operations/MeshConvexHull.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/MeshConvexHull.cpp |
static void GridSample
(
const FDynamicMesh3 & Mesh,
int GridResolutionMaxAxis,
TArray < int32 > & OutSamples
)
Parameters
| Name | Remarks |
|---|---|
| Mesh | Surface mesh whose vertices we want to sample |
| CellSizeAsPercentOfBounds | Grid cell size expressed as a percentage of the mesh bounding box size |
| OutSamples | Indices of chosen vertices |