AGX Dynamics  2.35.0.1
TrimeshHelperFunctions.h File Reference
#include <agx/agx.h>
#include <agxUtil/agxUtil.h>

Go to the source code of this file.

Classes

struct  agxUtil::ShapeOrientation
 Specify the orientation of cylinder, capsule for computeOrientedCylinder and computeOrientedCapsule. More...
 

Namespaces

 agxCollide
 This namespace consists of a set of classes for handling geometric intersection tests including boolean tests, penetration and contact sets.
 
 agxUtil
 The agxUtil namespace contain classes and methods for utility functionality.
 

Functions

void AGXPHYSICS_EXPORT agxUtil::changeWindingToCounterclockwise (agx::UInt32Vector &indices)
 Changes Winding from clockwise to counterclockwise. More...
 
AGXPHYSICS_EXPORT bool agxUtil::computeOrientedBox (const agx::Vec3Vector &vertices, agx::Vec3 &halfExtents, agx::AffineMatrix4x4 &transform)
 Computes an oriented bounding box around the specified vertices. More...
 
AGXPHYSICS_EXPORT bool agxUtil::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 halfExtents The orientation flag can be used to orient the cylinder along one of the principal axes of the box. More...
 
AGXPHYSICS_EXPORT bool agxUtil::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 halfExtents The orientation flag can be used to orient the cylinder along one of the principal axes of the box. More...
 
void AGXPHYSICS_EXPORT agxUtil::mergeDuplicateVertices (const agx::Vec3Vector &originalVertices, const agx::UInt32Vector &originalIndices, agx::Vec3Vector &remainingVertices, agx::UInt32Vector &remainingIndices, agx::Real precision)
 Merged duplicate vertices (distance is <= precision). More...
 
AGXPHYSICS_EXPORT bool agxUtil::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. More...