Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FConvexDecomposition3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include | #include "CompGeom/ConvexDecomposition3.h" |
Syntax
struct FConvexPart
Remarks
Representation of a convex hull in the decomposition + associated information to help further split or merge.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFailed | ||
| bool | bGeometryVolumeUnreliable | ||
| bool | bIsCompact | ||
| bool | bMustMerge | Flag indicating the hull should be merged into another part during a MergeBest() call. | |
| FAxisAlignedBox3d | Bounds | ||
| FVector3d | GeoCenter | ||
| double | GeoVolume | ||
| double | HullError | Approximate value indicating how badly the hull mismatches the input geometry. | |
| TArray< FPlane3d > | HullPlanes | ||
| TArray< FIndex3i > | HullTriangles | ||
| double | HullVolume | Measurements of the geo and hull, to be used when evaluating potential further splits. | |
| FDynamicMesh3 | InternalGeo | Underlying geometry represented by the convex part Note: If IsCompact(), this will only store vertices | |
| double | SumHullsVolume |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FConvexPart () |
|||
FConvexPart
(
bool bIsCompact |
Allow direct construction of a compact part (e.g. to allow construction of a pre-existing convex hull) | ||
FConvexPart
(
const FDynamicMesh3& SourceMesh, |
|||
FConvexPart
(
TArrayView< const FVector3f > Vertices, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Compact () |
||
| bool | ComputeHull
(
bool bComputePlanes |
Helper to create hull after InternalGeo is set. | |
| void | |||
| void | ComputeStats () |
Helper to compute volumes, centroid, bounds, etc after the convex part is initialized. | |
| double | GetHullDepth
(
FVector3d Pt |
Get the depth of a point inside the hull (positive values are inside the hull, negative outside) | |
| bool | IsCompact () |
||
| bool | IsFailed () |
||
| void | Reset () |