Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshSimpleShapeApproximation
Description
Calculate Projected Convex Hulls for each input mesh and store in ShapeSetOut. A Projected Hull is computed by first projecting all the mesh vertices to a plane, computing a 2D convex hull polygon, and then sweeping the polygon in 3D to contain all the mesh vertices. The 2D convex hull polygons are optionally simplified if bSimplifyHulls=true.
| Name | Generate_ProjectedHulls |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/ShapeApproximation/MeshSimpleShapeApproximation.h |
| Include Path | #include "ShapeApproximation/MeshSimpleShapeApproximation.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/ShapeApproximation/MeshSimpleShapeApproximation.cpp |
void Generate_ProjectedHulls
(
FSimpleShapeSet3d & ShapeSetOut,
EProjectedHullAxisMode AxisMode
)
Parameters
| Name | Remarks |
|---|---|
| AxisMode | which axis to use for the planar projection |