Navigation
API > API/Plugins > API/Plugins/GeometryAlgorithms
Simple representation of a surface's medial skeleton, as a set of spheres + connectivity on those spheres, and a mapping to the surface vertices
| Name | FMedialSkeleton |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/GeometryAlgorithms/Public/Skeletonization/MeshMedialAxisSampling.h |
| Include Path | #include "Skeletonization/MeshMedialAxisSampling.h" |
Syntax
struct FMedialSkeleton
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FNbrArray | TArray< int32, TInlineAllocator< 16 > > | Inline-allocated array used for representing the typically-small neighborhoods in the cluster connectivity graph. | Skeletonization/MeshMedialAxisSampling.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ClusterNeighbors | TArray< FNbrArray > | Indices of neighbors of clusters, for each cluster. | Skeletonization/MeshMedialAxisSampling.h | |
| ClusterTriangles | TArray< FIndex3i > | Triangles of the medial skeleton, where the skeleton is a surface rather than a chain. Note: Not oriented, and generally not manifold so cannot be directly appended to an FDynamicMesh3. | Skeletonization/MeshMedialAxisSampling.h | |
| Spheres | TArray< FSphere > | Medial spheres, 1 per cluster, indexed by cluster index. | Skeletonization/MeshMedialAxisSampling.h | |
| VIDtoClusterIndex | TArray< int32 > | Mapping from source mesh vertex IDs to cluster Index. | Skeletonization/MeshMedialAxisSampling.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CheckValidity
(
EValidityCheckFailMode FailMode |
Check that the skeleton data structures are internally consistent Note: Relatively expensive, intended for debugging / testing | Skeletonization/MeshMedialAxisSampling.h | |
void ComputeClusterNeighbors
(
const TriangleMeshType& Mesh, |
Compute the ClusterNeighbors array for the current FMedialSkeleton, given a Mesh and assuming Spheres and VIDtoClusterIndex are already computed. | Skeletonization/MeshMedialAxisSampling.h | |
void ComputeClusterTriangles
(
const TriangleMeshType& Mesh, |
Compute the ClusterTriangles array for the current FMedialSkeleton, given a Mesh and assuming VIDtoClusterIndex is already computed. | Skeletonization/MeshMedialAxisSampling.h | |
bool IsCompatibleWithMesh
(
const TriangleMeshType& Mesh |
Skeletonization/MeshMedialAxisSampling.h |