70 double reductionRatio=0.5,
71 double aggressiveness = 7.0);
#define AGXPHYSICS_EXPORT
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxUtil namespace contain classes and methods for utility functionality.
AGXPHYSICS_EXPORT bool computeOrientedCylinder(const agx::Vec3Vector &vertices, agx::Vec2 &radiusHeight, agx::AffineMatrix4x4 &localRotation, agxUtil::ShapeOrientation::Orientation orientation=agxUtil::ShapeOrientation::MINIMIZE_VOLUME)
Compute the radius, height and rotation of a cylinder that encapsulates a specified box specified by ...
AGXPHYSICS_EXPORT bool reduceMesh(const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, agx::Vec3Vector &outVertices, agx::UInt32Vector &outIndices, double reductionRatio=0.5, double aggressiveness=7.0)
Perform mesh reduction using Fast-Quadric-Mesh.
AGXPHYSICS_EXPORT bool computeOrientedBox(const agx::Vec3Vector &vertices, agx::Vec3 &halfExtents, agx::AffineMatrix4x4 &transform)
Computes an oriented bounding box around the specified vertices.
AGXPHYSICS_EXPORT bool computeOrientedCapsule(const agx::Vec3Vector &vertices, agx::Vec2 &radiusHeight, agx::AffineMatrix4x4 &localRotation, agxUtil::ShapeOrientation::Orientation orientation=agxUtil::ShapeOrientation::MINIMIZE_VOLUME)
Compute the radius, height and rotation of a capsule that encapsulates a specified box specified by h...
void AGXPHYSICS_EXPORT mergeDuplicateVertices(const agx::Vec3Vector &originalVertices, const agx::UInt32Vector &originalIndices, agx::Vec3Vector &remainingVertices, agx::UInt32Vector &remainingIndices, agx::Real precision)
Merged duplicate vertices (distance is <= precision).
void AGXPHYSICS_EXPORT changeWindingToCounterclockwise(agx::UInt32Vector &indices)
Changes Winding from clockwise to counterclockwise.
Specify the orientation of cylinder, capsule for computeOrientedCylinder and computeOrientedCapsule.
@ X_AXIS
Choose the principal axis along the X-axis of the bounding box.
@ MINIMIZE_VOLUME
Automatically choose the direction which leads to the smallest volume.
@ Y_AXIS
Choose the principal axis along the Y-axis of the bounding box.
@ Z_AXIS
Choose the principal axis along the Z-axis of the bounding box.