28 namespace deprecated {
32 class ConvexBuilderImplementation;
69 if (i >= m_convexShapes.size())
71 return m_convexShapes[i];
84 void setDepth(
unsigned int depth = 5) { m_depth = depth; }
85 unsigned int getDepth()
const {
return m_depth; }
92 void setVolumePercent(
unsigned int volumePercent = 5) { m_volumePercent = volumePercent; }
109 unsigned int m_volumePercent;
110 unsigned int m_concavityPercent;
111 unsigned int m_maxVertices;
112 unsigned int m_depth;
116 ConvexBuilderImplementation* m_impl;
#define AGXPHYSICS_EXPORT
Class for creating convex meshes from a set of vertices and indices.
size_t buildConvexShapes(agxCollide::deprecated::ConvexBuilderImplementation *impl)
void setMaxVertices(unsigned int n=32)
Option: Set maximum number of vertices in the output hull. Recommended 32 or less.
double getSkinWidth() const
size_t getNumShapes() const
return num shapes
agxCollide::ConvexRef getShape(size_t i)
ConvexBuilder()
Constructor.
unsigned int getConcavityPercent() const
void setDepth(unsigned int depth=5)
Option: Set the depth to split, a maximum of 10, generally not over 7.
unsigned int getDepth() const
const ConvexRefVector & getConvexShapes() const
void setSkinWidth(double swidth=0.0)
Option: Set the skin width to apply to the output hulls.
void setVolumePercent(unsigned int volumePercent=5)
Option: Set the percentage volume conservation threshold to collapse hulls. 0-30 is reasonable.
size_t build(agxIO::MeshReader *reader)
Constructs a number of Convex shapes from the triangles read with the MeshReader.
unsigned int getMaxVertices() const
unsigned int getVolumePercent() const
size_t build(const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, size_t numTriangles)
Constructs a number of Convex shapes from a triangle list.
void setConcavityPercent(unsigned int concPercent=5)
Option: Set the concavity threshold percentage. 0=20 is reasonable.
Class for reading a mesh object from file and extracting vertices, normals and indices for collision ...
Base class providing referencing counted objects.
agx::Vector< agxCollide::ConvexRef > ConvexRefVector
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGX_DECLARE_POINTER_TYPES(SpaceListener)