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