29 namespace ConvexReaderWriter {
45 size_t elementResolutionPerAxis = 50,
65 size_t elementResolutionPerAxis = 50,
113 size_t elementResolutionPerAxis = 50,
133 size_t elementResolutionPerAxis = 50,
149 const agx::String& sourceName =
"convexFromReaderWriter",
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGXPHYSICS_EXPORT agxCollide::Convex * createConvex(const agx::String &filename, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
Creates a convex shape from a trimesh file.
#define AGXPHYSICS_EXPORT
A convex class for geometric intersection tests.
AGXPHYSICS_EXPORT bool exportConvex(const agxCollide::Convex &convex, const agx::String &filename)
Exports convex vertex and index data to a wavefront obj file on a storage device. ...
agx::Vector< agxCollide::ConvexRef > ConvexRefVector
AGXPHYSICS_EXPORT agxCollide::Convex * createFromConvex(const agx::String &filename, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
Creates a convex from a supported mesh-file (see agxIO::MeshReader::FileType) which is known to be co...
AGXPHYSICS_EXPORT bool createVHACDConvexDecomposition(const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, agxCollide::ConvexRefVector &results, size_t elementResolutionPerAxis=50, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
Creates a set of convex shapes that approximates the triangle mesh defined by vertices and indices us...
The agxUtil namespace contain classes and methods for utility functionality.
AGXPHYSICS_EXPORT bool createConvexDecomposition(const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, agxCollide::ConvexRefVector &results, size_t elementResolutionPerAxis=50, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
Creates a set of convex shapes that approximates the triangle mesh defined by filename using V-HACD w...