AGX Dynamics  2.35.0.1
ConvexReaderWriter/ConvexReaderWriter.h File Reference
#include <agx/agx.h>
#include <agxCollide/Convex.h>

Go to the source code of this file.

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.
 
 agxUtil::ConvexReaderWriter
 Functions for generating Convex shapes from meshes, and for serializing them.
 

Functions

AGXPHYSICS_EXPORT agxCollide::Convex * agxUtil::ConvexReaderWriter::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. More...
 
AGXPHYSICS_EXPORT agxCollide::Convex * agxUtil::ConvexReaderWriter::createConvex (const agx::Vec3Vector &vertices, const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
 Creates a convex shape from vertices only, building their convex hull. More...
 
AGXPHYSICS_EXPORT bool agxUtil::ConvexReaderWriter::createConvexDecomposition (const agx::String &filename, 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 which uses a volumetric algorithm. More...
 
AGXPHYSICS_EXPORT bool agxUtil::ConvexReaderWriter::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 which uses a volumetric algorithm. More...
 
AGXPHYSICS_EXPORT agxCollide::Convex * agxUtil::ConvexReaderWriter::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 convex. More...
 
AGXPHYSICS_EXPORT agxCollide::Convex * agxUtil::ConvexReaderWriter::createFromConvex (const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, const agx::String &sourceName="convexFromReaderWriter", const agx::Matrix3x3 &transformation=agx::Matrix3x3(), const agx::Vec3 &translation=agx::Vec3())
 Creates a convex from vertices which are known to be convex. More...
 
AGXPHYSICS_EXPORT bool agxUtil::ConvexReaderWriter::createVHACDConvexDecomposition (const agx::String &filename, 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 which uses a volumetric algorithm. More...
 
AGXPHYSICS_EXPORT bool agxUtil::ConvexReaderWriter::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 using V-HACD which uses a volumetric algorithm. More...
 
AGXPHYSICS_EXPORT bool agxUtil::ConvexReaderWriter::exportConvex (const agxCollide::Convex &convex, const agx::String &filename)
 Exports convex vertex and index data to a wavefront obj file on a storage device. More...