Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Calculate a Convex Hull for a Mesh by first Projecting all vertices to a plane, computing a 2D convex polygon that contains them, and then sweeping that 2D hull to create an extruded 3D volume.
| Name | FMeshProjectionHull |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshProjectionHull.h |
| Include Path | #include "Operations/MeshProjectionHull.h" |
Syntax
class FMeshProjectionHull
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshProjectionHull
(
const FDynamicMesh3* MeshIn |
Operations/MeshProjectionHull.h |
Enums
Public
| Name | Remarks |
|---|---|
| EKeep3DHullSide |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSimplifyPolygon | bool | If true, 2D convex hull is simplified using MinEdgeLength and DeviationTolerance | Operations/MeshProjectionHull.h | |
| ConvexHull2D | FPolygon2d | Calculated convex hull polygon | Operations/MeshProjectionHull.h | |
| ConvexHull3D | FDynamicMesh3 | Output swept-polygon convex hull | Operations/MeshProjectionHull.h | |
| DeviationTolerance | double | Deviation Tolerance of the simplified 2D Convex Hull | Operations/MeshProjectionHull.h | |
| Keep3DHullSide | EKeep3DHullSide | Whether to conform to the 3D convex hull surface on the front or back side of the sweep, or to use a flat surface on both sides of the swept hull | Operations/MeshProjectionHull.h | |
| Mesh | const FDynamicMesh3 * | Input Mesh | Operations/MeshProjectionHull.h | |
| MinEdgeLength | double | Minimum Edge Length of the simplified 2D Convex Hull | Operations/MeshProjectionHull.h | |
| MinThickness | double | Minimum thickness of extrusion. | Operations/MeshProjectionHull.h | |
| ProjectionFrame | FFrame3d | Input 3D Frame/Plane | Operations/MeshProjectionHull.h | |
| SimplifiedHull2D | FPolygon2d | Simplified convex hull polygon. Not initialized if bSimplifyPolygon == false | Operations/MeshProjectionHull.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Compute() |
Calculate output 2D Convex Polygon and Swept-Polygon 3D Mesh for vertices of input Mesh | Operations/MeshProjectionHull.h |