Skip to content

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 ​

cpp
double threshold

Concavity threshold of a part, normalized to the mesh size (0-1), or in meters with realMetric. Smaller values give more, finer parts.

maxConvexHull ​

cpp
int maxConvexHull

Maximum number of convex hulls, enforced while merging; a value <= 0 means no limit.

preprocess ​

cpp
std::string preprocess

Manifold preprocessing: "auto", "on" or "off".

prepResolution ​

cpp
int prepResolution

Resolution of the manifold preprocessing, in [5, 1000].

sampleResolution ​

cpp
int sampleResolution

Sampling resolution used to evaluate concavity.

mctsNodes ​

cpp
int mctsNodes

Monte Carlo tree search: nodes per level.

mctsIteration ​

cpp
int mctsIteration

Monte Carlo tree search: iterations.

mctsMaxDepth ​

cpp
int mctsMaxDepth

Monte Carlo tree search: maximum depth.

pca ​

cpp
bool pca

Align the mesh with its principal axes (PCA) before decomposing.

merge ​

cpp
bool merge

Merge parts after decomposition.

decimate ​

cpp
bool decimate

Limit the vertices of each hull to maxConvexHullVertex.

maxConvexHullVertex ​

cpp
int maxConvexHullVertex

Maximum vertices per hull when decimate is set.

extrude ​

cpp
bool extrude

Extrude neighboring parts along their overlap plane by extrudeMargin.

extrudeMargin ​

cpp
double extrudeMargin

Extrusion margin used when extrude is set.

approximateMode ​

cpp
std::string approximateMode

Part approximation: "ch" (convex hull) or "box".

seed ​

cpp
unsigned int seed

Random seed.

realMetric ​

cpp
bool realMetric

Interpret threshold in meters instead of normalized units.

RaiSim — physics for robotics and AI.