AGX Dynamics 2.41.1.2
Loading...
Searching...
No Matches
agxUtil::SphereSkeleton Class Reference

A skeleton with spherical joints. More...

#include <SphereMeshSkeletonisation.h>

Classes

class  dfs_iterator
 
struct  Joint
 A joint in a sphereskeleton. More...
 

Public Member Functions

AGXPHYSICS_EXPORT SphereSkeleton ()
 Default constructor.
 
AGXPHYSICS_EXPORT SphereSkeleton (const SphereSkeleton &other)
 Copy constructor.
 
AGXPHYSICS_EXPORT dfs_iterator begin () const
 
AGXPHYSICS_EXPORT bool contains (agx::UInt32 skeletoniserIndex)
 
AGXPHYSICS_EXPORT dfs_iterator end () const
 
AGXPHYSICS_EXPORT SphereSkeleton getLongestContinuousSkeletonSegment ()
 Creates a new skeleton from the longest continous path in the given skeleton.
 
AGXPHYSICS_EXPORT agx::Vector< SphereSkeletonsegmentSkeleton () const
 Segment the skeleton into a set of new skeletons, splitting the skeleton at each junction and separating disjoint skeletons.
 

Public Attributes

agx::Vector< Jointjoints
 
agx::Size leafJoint = 0
 

Detailed Description

A skeleton with spherical joints.

Instances of this class are returned by the SphereSkeletoniser class and the "skeletoniseMesh" function.

Definition at line 38 of file SphereMeshSkeletonisation.h.

Constructor & Destructor Documentation

◆ SphereSkeleton() [1/2]

AGXPHYSICS_EXPORT agxUtil::SphereSkeleton::SphereSkeleton ( const SphereSkeleton other)

Copy constructor.

Parameters
otherThe skeleton to copy

◆ SphereSkeleton() [2/2]

AGXPHYSICS_EXPORT agxUtil::SphereSkeleton::SphereSkeleton ( )
inline

Default constructor.

Definition at line 74 of file SphereMeshSkeletonisation.h.

Member Function Documentation

◆ begin()

AGXPHYSICS_EXPORT dfs_iterator agxUtil::SphereSkeleton::begin ( ) const
Returns
A depth first search iterator starting at the leaf joint in the skeleton

◆ contains()

AGXPHYSICS_EXPORT bool agxUtil::SphereSkeleton::contains ( agx::UInt32  skeletoniserIndex)
Parameters
skeletoniserIndexThe skeletoniser index to test
Returns
True if the given skeletoniser index is present in the skeleton.

◆ end()

AGXPHYSICS_EXPORT dfs_iterator agxUtil::SphereSkeleton::end ( ) const
Returns
A depth first search iterator in the end state. This iterator is invalid and should not be dereferenced.

◆ getLongestContinuousSkeletonSegment()

AGXPHYSICS_EXPORT SphereSkeleton agxUtil::SphereSkeleton::getLongestContinuousSkeletonSegment ( )

Creates a new skeleton from the longest continous path in the given skeleton.

Returns
A new skeleton only containing the lnogst continous path in this skeleton.

◆ segmentSkeleton()

AGXPHYSICS_EXPORT agx::Vector< SphereSkeleton > agxUtil::SphereSkeleton::segmentSkeleton ( ) const

Segment the skeleton into a set of new skeletons, splitting the skeleton at each junction and separating disjoint skeletons.

Member Data Documentation

◆ joints

agx::Vector<Joint> agxUtil::SphereSkeleton::joints

Definition at line 51 of file SphereMeshSkeletonisation.h.

◆ leafJoint

agx::Size agxUtil::SphereSkeleton::leafJoint = 0

Definition at line 52 of file SphereMeshSkeletonisation.h.


The documentation for this class was generated from the following file: