AGX Dynamics 2.41.1.2
Loading...
Searching...
No Matches
agxUtil::RawMeshReader Namespace Reference

Functions for generating Trimesh shapes from meshes, and for serializing them. More...

Functions

AGXPHYSICS_EXPORT agxUtil::RawMeshRefVector createRawMeshFromFile (const agx::String &filename, const agx::Matrix3x3 &vertexRotateAndScale=agx::Matrix3x3(), const agx::Vec3 &vertexTranslate=agx::Vec3())
 Create a mesh shape from a file containing mesh data (only obj is supported formats today).
 

Detailed Description

Functions for generating Trimesh shapes from meshes, and for serializing them.

Function Documentation

◆ createRawMeshFromFile()

AGXPHYSICS_EXPORT agxUtil::RawMeshRefVector agxUtil::RawMeshReader::createRawMeshFromFile ( const agx::String filename,
const agx::Matrix3x3 vertexRotateAndScale = agx::Matrix3x3(),
const agx::Vec3 vertexTranslate = agx::Vec3() 
)

Create a mesh shape from a file containing mesh data (only obj is supported formats today).

Parameters
filenameFile to create mesh from
vertexRotateAndScaleRotation and scale of mesh
vertexTranslateTranslation of mesh
Returns
pointer to new mesh shape, nullptr if file could not be loaded