raisim::CoacdOptions
struct · #include <raisim/configure.hpp>
CoACD convex decomposition parameters for mesh collision approximation. The fields are passed unchanged to coacd::CoACD() (third_party/coacd) in this order.
Public attributes
threshold
double thresholdConcavity threshold of a part, normalized to the mesh size (0-1), or in meters with realMetric. Smaller values give more, finer parts.
maxConvexHull
int maxConvexHullMaximum number of convex hulls, enforced while merging; a value <= 0 means no limit.
preprocess
std::string preprocessManifold preprocessing: "auto", "on" or "off".
prepResolution
int prepResolutionResolution of the manifold preprocessing, in [5, 1000].
sampleResolution
int sampleResolutionSampling resolution used to evaluate concavity.
mctsNodes
int mctsNodesMonte Carlo tree search: nodes per level.
mctsIteration
int mctsIterationMonte Carlo tree search: iterations.
mctsMaxDepth
int mctsMaxDepthMonte Carlo tree search: maximum depth.
pca
bool pcaAlign the mesh with its principal axes (PCA) before decomposing.
merge
bool mergeMerge parts after decomposition.
decimate
bool decimateLimit the vertices of each hull to maxConvexHullVertex.
maxConvexHullVertex
int maxConvexHullVertexMaximum vertices per hull when decimate is set.
extrude
bool extrudeExtrude neighboring parts along their overlap plane by extrudeMargin.
extrudeMargin
double extrudeMarginExtrusion margin used when extrude is set.
approximateMode
std::string approximateModePart approximation: "ch" (convex hull) or "box".
seed
unsigned int seedRandom seed.
realMetric
bool realMetricInterpret threshold in meters instead of normalized units.