Classes | Public Member Functions | Protected Member Functions | List of all members
VHACD::IVHACD Class Referenceabstract

#include <VHACD.h>

Classes

class  ConvexHull
 
class  IUserCallback
 
class  IUserLogger
 
class  IUserTaskRunner
 
class  Parameters
 

Public Member Functions

virtual void Cancel ()=0
 
virtual void Clean ()=0
 
virtual bool Compute (const double *const points, const uint32_t countPoints, const uint32_t *const triangles, const uint32_t countTriangles, const Parameters &params)=0
 
virtual bool Compute (const float *const points, const uint32_t countPoints, const uint32_t *const triangles, const uint32_t countTriangles, const Parameters &params)=0
 
virtual bool ComputeCenterOfMass (double centerOfMass[3]) const =0
 
virtual uint32_t findNearestConvexHull (const double pos[3], double &distanceToHull)=0
 
virtual bool GetConvexHull (const uint32_t index, ConvexHull &ch) const =0
 
virtual uint32_t GetNConvexHulls () const =0
 
virtual bool IsReady () const
 
virtual void Release ()=0
 

Protected Member Functions

virtual ~IVHACD ()
 

Detailed Description

Definition at line 315 of file VHACD.h.

Constructor & Destructor Documentation

◆ ~IVHACD()

virtual VHACD::IVHACD::~IVHACD ( )
inlineprotectedvirtual

Definition at line 499 of file VHACD.h.

Member Function Documentation

◆ Cancel()

virtual void VHACD::IVHACD::Cancel ( )
pure virtual

Will cause the convex decomposition operation to be canceled early. No results will be produced but the background operation will end as soon as it can.

◆ Clean()

virtual void VHACD::IVHACD::Clean ( )
pure virtual

Releases any memory allocated by the V-HACD class

◆ Compute() [1/2]

virtual bool VHACD::IVHACD::Compute ( const double *const  points,
const uint32_t  countPoints,
const uint32_t *const  triangles,
const uint32_t  countTriangles,
const Parameters params 
)
pure virtual

Compute a convex decomposition of a triangle mesh using double vertices and the provided user parameters.

Parameters
points: The vertices of the source mesh as floats in the form of X1,Y1,Z1, X2,Y2,Z2,.. etc.
countPoints: The number of vertices in the source mesh.
triangles: The indices of triangles in the source mesh in the form of I1,I2,I3, ....
countTriangles: The number of triangles in the source mesh
params: The convex decomposition parameters to apply
Returns
: Returns true if the convex decomposition operation can be started

◆ Compute() [2/2]

virtual bool VHACD::IVHACD::Compute ( const float *const  points,
const uint32_t  countPoints,
const uint32_t *const  triangles,
const uint32_t  countTriangles,
const Parameters params 
)
pure virtual

Compute a convex decomposition of a triangle mesh using float vertices and the provided user parameters.

Parameters
points: The vertices of the source mesh as floats in the form of X1,Y1,Z1, X2,Y2,Z2,.. etc.
countPoints: The number of vertices in the source mesh.
triangles: The indices of triangles in the source mesh in the form of I1,I2,I3, ....
countTriangles: The number of triangles in the source mesh
params: The convex decomposition parameters to apply
Returns
: Returns true if the convex decomposition operation can be started

◆ ComputeCenterOfMass()

virtual bool VHACD::IVHACD::ComputeCenterOfMass ( double  centerOfMass[3]) const
pure virtual

◆ findNearestConvexHull()

virtual uint32_t VHACD::IVHACD::findNearestConvexHull ( const double  pos[3],
double &  distanceToHull 
)
pure virtual

At the request of LegionFu : out_l.nosp@m.ook@.nosp@m.foxma.nosp@m.il.c.nosp@m.om This method will return which convex hull is closest to the source position. You can use this method to figure out, for example, which vertices in the original source mesh are best associated with which convex hull.

Parameters
pos: The input 3d position to test against
Returns
: Returns which convex hull this position is closest to.

◆ GetConvexHull()

virtual bool VHACD::IVHACD::GetConvexHull ( const uint32_t  index,
ConvexHull ch 
) const
pure virtual

Retrieves one of the convex hulls in the solution set

Parameters
index: Which convex hull to retrieve
ch: The convex hull descriptor to return
Returns
: Returns true if the convex hull exists and could be retrieved

◆ GetNConvexHulls()

virtual uint32_t VHACD::IVHACD::GetNConvexHulls ( ) const
pure virtual

Returns the number of convex hulls that were produced.

Returns
: Returns the number of convex hulls produced, or zero if it failed or was canceled

◆ IsReady()

virtual bool VHACD::IVHACD::IsReady ( ) const
inlinevirtual

Definition at line 484 of file VHACD.h.

◆ Release()

virtual void VHACD::IVHACD::Release ( )
pure virtual

Releases this instance of the V-HACD class


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


tesseract_collision
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:53