Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshConvexHull.h |
Include |
#include "Operations/MeshConvexHull.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/Operations/MeshConvexHull.cpp |
static void GridSample
(
const FDynamicMesh3 & Mesh,
int GridResolutionMaxAxis,
TArray< int32 > & OutSamples
)
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.
Parameter |
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 |