Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations > API/Plugins/DynamicMesh/Operations/FMeshConvexHull
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshConvexHull.h |
| Include | #include "Operations/MeshConvexHull.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/MeshConvexHull.cpp |
static void GridSample
&40;
const FDynamicMesh3 & Mesh,
int GridResolutionMaxAxis,
TArray< int32 > & OutSamples
&41;
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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 |