AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
TrimeshReaderWriter.h File Reference
#include <agx/agx.h>
#include <agxCollide/Trimesh.h>

Go to the source code of this file.

Namespaces

namespace  agxCollide
 This namespace consists of a set of classes for handling geometric intersection tests including boolean tests, penetration and contact sets.
 
namespace  agxUtil
 The agxUtil namespace contain classes and methods for utility functionality.
 
namespace  agxUtil::TrimeshReaderWriter
 Functions for generating Trimesh shapes from meshes, and for serializing them.
 

Functions

AGXPHYSICS_EXPORT agxCollide::RenderData * agxUtil::TrimeshReaderWriter::createRenderData (const agx::String &filename, const agx::Matrix3x3 &vertexRotateAndScale=agx::Matrix3x3(), const agx::Vec3 &vertexTranslate=agx::Vec3())
 Create a RenderData object from a supported mesh file (See agxIO::MeshReader::FileType).
 
AGXPHYSICS_EXPORT agxCollide::Trimesh * agxUtil::TrimeshReaderWriter::createTrimesh (const agx::String &filename, uint32_t trimeshOptions=agxCollide::Trimesh::REMOVE_DUPLICATE_VERTICES, const agx::Matrix3x3 &vertexRotateAndScale=agx::Matrix3x3(), const agx::Vec3 &vertexTranslate=agx::Vec3())
 Create a Trimesh shape from a supported mesh file format (See agxIO::MeshReader::FileType) containing mesh data.
 
AGXPHYSICS_EXPORT agxCollide::Trimesh * agxUtil::TrimeshReaderWriter::createTrimesh (const agx::Vec3Vector &vertices, const agx::UInt32Vector &indices, uint32_t trimeshOptions=agxCollide::Trimesh::REMOVE_DUPLICATE_VERTICES, const agx::Matrix3x3 &vertexRotateAndScale=agx::Matrix3x3(), const agx::Vec3 &vertexTranslate=agx::Vec3())
 Create a Trimesh shape from vertices and indices.
 
AGXPHYSICS_EXPORT agxCollide::Trimesh * agxUtil::TrimeshReaderWriter::createTrimesh (const agxCollide::HeightField *heightField)
 Creates a trimesh from an agxCollide::HeightField.
 
AGXPHYSICS_EXPORT agxCollide::Trimesh * agxUtil::TrimeshReaderWriter::createTrimeshTerrain (const agx::String &filename, agx::Real bottomMargin, uint32_t trimeshOptions=agxCollide::Trimesh::REMOVE_DUPLICATE_VERTICES, const agx::Matrix3x3 &vertexRotateAndScale=agx::Matrix3x3(), const agx::Vec3 &vertexTranslate=agx::Vec3())
 Create a Terrain shape from a supported mesh model file (See agxIO::MeshReader::FileType).
 
AGXPHYSICS_EXPORT bool agxUtil::TrimeshReaderWriter::exportTrimesh (const agxCollide::Trimesh *trimesh, const agx::String &filename)
 Exports trimesh vertex and index data to a mesh file (currently only supporting wavefront obj).