Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Calculate Convex Hull of a Mesh
| Name | FMeshConvexHull |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshConvexHull.h |
| Include Path | #include "Operations/MeshConvexHull.h" |
Syntax
class FMeshConvexHull
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshConvexHull
(
const FDynamicMesh3* MeshIn |
Operations/MeshConvexHull.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bPostSimplify | bool | If true, output convex hull is simplified down to MaxTargetFaceCount | Operations/MeshConvexHull.h | |
| ConvexHull | FDynamicMesh3 | Output convex hull | Operations/MeshConvexHull.h | |
| MaxTargetFaceCount | int32 | Target triangle count of the output Convex Hull | Operations/MeshConvexHull.h | |
| Mesh | const FDynamicMesh3 * | Input Mesh | Operations/MeshConvexHull.h | |
| MinDimension | double | Minimum extent along the shortest dimension; if greater than zero, the hull may be expanded if it would be too thin | Operations/MeshConvexHull.h | |
| VertexSet | TArray< int32 > | If set, hull will be computed on subset of vertices | Operations/MeshConvexHull.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Compute
(
FProgressCancel* Progress |
Calculate output ConvexHull mesh for vertices of input Mesh | Operations/MeshConvexHull.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Compute_FullMesh
(
FProgressCancel* Progress |
Operations/MeshConvexHull.h | ||
bool Compute_VertexSubset
(
FProgressCancel* Progress |
Operations/MeshConvexHull.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector3i DebugGetCellIndex
(
const FDynamicMesh3& Mesh, |
Used for testing/debugging | Operations/MeshConvexHull.h | |
static void GridSample
(
const FDynamicMesh3& Mesh, |
Choose a more or less evenly-spaced subset of mesh vertices. | Operations/MeshConvexHull.h | |
static bool SimplifyHull
(
FDynamicMesh3& HullMesh, |
Simplify the output convex hull. Assumes ConvexHull is already computed. | Operations/MeshConvexHull.h |