139 size_t getNumTriangles()
const;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
Class for reading a mesh object from file and extracting vertices, normals and indices for collision ...
agx::Vec2Vector m_texCoordinates
size_t getNumTriangles() const
Get number of triangles from previously read mesh file.
void clear()
Reset all allocated memory.
agx::Vec3Vector m_normals
virtual size_t readFile(const agx::String &filename)
Read a specified filename containing a mesh description in some mesh format.
size_t readShlStream(std::istream &stream)
Read a specified stream containing a mesh description in SHL format.
agx::UInt32Vector m_indices
virtual size_t readString(const agx::String &mesh, FileExtension::FileType fet)
Read a specified string containing a mesh description in some mesh format defined as a string.
static agx::StringVector m_extensions
agx::Vec3Vector m_vertices
virtual size_t readStream(std::istream &stream, FileExtension::FileType fet)
Read a specified stream containing a mesh description in some mesh format.
const agx::Vec3Vector & getNormals() const
Get normals from previously read mesh file.
const agx::Vec2Vector & getTextureCoordinates() const
Get texture coordinates from previously read mesh file.
const agx::Vec3Vector & getVertices() const
Get vertices from previously read mesh file.
static FileExtension::FileType getFileExtensionType(const agx::String &fileName)
Convert a filename to a known (or unknown) file extension enum.
static agx::String getFileExtension(FileExtension::FileType type)
Convert a filetype enum to a string with the file extension (without '.
const agx::UInt32Vector & getIndices() const
Get indices from previously read mesh file.
Base class providing referencing counted objects.
The agxIO namespace contains classes for reading, writing and finding files.
Support mesh file formats.
@ IFC
Industry Foundation Classes (IFC/Step)
@ OGEX
Open Game Engine Exchange(.ogex)
@ GLTF
Ascii GL Transmission format.
@ GLTFB
Binary GL Transmission format.
@ PLY
Stanford Polygon Library.
@ ASSIMP
AssImp reader/writer.