Loading...
Searching...
No Matches
Public Member Functions | List of all members
sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition Class Reference

Convex decomposition. More...

#include <Mesh.hh>

Public Member Functions

 ConvexDecomposition ()
 Default constructor.
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load.
 
Errors Load (ElementPtr _sdf)
 Load the contact based on a element pointer.
 
unsigned int MaxConvexHulls () const
 Get the maximum number of convex hulls that can be generated.
 
void SetMaxConvexHulls (unsigned int _maxConvexHulls)
 Set the maximum number of convex hulls that can be generated.
 
void SetVoxelResolution (unsigned int _voxelResolution)
 Set the voxel resolution to use for representing the mesh.
 
unsigned int VoxelResolution () const
 Get the voxel resolution to use for representing the mesh.
 

Detailed Description

Convex decomposition.

Constructor & Destructor Documentation

◆ ConvexDecomposition()

sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::ConvexDecomposition ( )

Default constructor.

Member Function Documentation

◆ Element()

sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::Element ( ) const

Get a pointer to the SDF element that was used during load.

Returns
SDF element pointer. The value will be nullptr if Load has not been called.

◆ Load()

Errors sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::Load ( ElementPtr  _sdf)

Load the contact based on a element pointer.

This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.

Parameters
[in]_sdfThe SDF Element pointer
Returns
Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.

◆ MaxConvexHulls()

unsigned int sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::MaxConvexHulls ( ) const

Get the maximum number of convex hulls that can be generated.

Returns
Maximum number of convex hulls.

◆ SetMaxConvexHulls()

void sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::SetMaxConvexHulls ( unsigned int  _maxConvexHulls)

Set the maximum number of convex hulls that can be generated.

Parameters
[in]_maxConvexHullsMaximum number of convex hulls.

◆ SetVoxelResolution()

void sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::SetVoxelResolution ( unsigned int  _voxelResolution)

Set the voxel resolution to use for representing the mesh.

Applicable only to voxel based convex decomposition methods.

Parameters
[in]_voxelResolutionVoxel resolution to use.

◆ VoxelResolution()

unsigned int sdf::SDF_VERSION_NAMESPACE::ConvexDecomposition::VoxelResolution ( ) const

Get the voxel resolution to use for representing the mesh.

Applicable only to voxel based convex decomposition methods.

Parameters
[in]_voxelResolutionVoxel resolution to use.

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