FMeshConvexHull::GridSample

Choose a more or less evenly-spaced subset of mesh vertices.

Windows
MacOS
Linux

References

Module

DynamicMesh

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

Syntax

static void GridSample
(
    const FDynamicMesh3 & Mesh,
    int GridResolutionMaxAxis,
    TArray< int32 > & OutSamples
)

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss