53 uint32_t resolution = 50;
56 double concavity = 0.0025;
59 uint32_t planeDownsampling = 4;
62 uint32_t convexhullDownsampling = 4;
77 uint32_t maxNumVerticesPerConvex = 64;
80 double minVolumePerConvex = 0.0001;
82 bool convexhullApproximation =
true;
85 uint32_t maxConvexHulls = 1024;
#define AGXPHYSICS_EXPORT
Class for creating convex meshes from a set of vertices and indices.
agx::ref_ptr< const VHACDParameters > VHACDParametersConstRef
agx::ref_ptr< Parameters > ParametersRef
agx::ref_ptr< const Parameters > ParametersConstRef
size_t build(const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, const Parameters *parameters=nullptr, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
Constructs a number of Convex shapes from a triangle list.
const ConvexRefVector & getConvexShapes() const
agxCollide::ConvexRef getShape(size_t i)
ConvexFactory()
Constructor.
size_t getNumShapes() const
return num shapes
size_t build(const agxIO::MeshReader *reader, const Parameters *parameters=nullptr, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
Constructs a number of Convex shapes from the triangles read with the MeshReader.
agx::ref_ptr< VHACDParameters > VHACDParametersRef
Class for reading a mesh object from file and extracting vertices, normals and indices for collision ...
Base class providing referencing counted objects.
Smart pointer for handling referenced counted objects.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::Vector< agxCollide::ConvexRef > ConvexRefVector
AGX_DECLARE_POINTER_TYPES(SpaceListener)