17#ifndef AGXUTIL_RAWMESH_H
18#define AGXUTIL_RAWMESH_H
122 agx::Real calculateFaceArea(
size_t face)
const;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
A class to hold a general represenation of a mesh with arbitrary number of vertices in a face.
agx::Real getTotalArea() const
Get the area of all the triangles calculated as described for getFaceArea.
agx::Real getVertexArea(size_t vertex) const
Get the area represented by a single vertex.
agx::VectorPOD< agx::UInt > IndexVector
const IndexVector & getFaceVertices(size_t face) const
Get the index each vertex in the specified face.
size_t getNumFaces() const
Get the number of faces stored in the mesh.
const IndexVector & getFacesFromVertex(size_t vertex) const
Get the faces which contain a specified vertex.
const agx::String & getName() const
Get the name of the mesh.
RawMesh(const agx::String &meshName)
agx::Vec3 getVertexPosition(size_t vertex) const
Get the position of a vertex.
size_t addFace(const IndexVector &vertices)
Add a face to the object stored with the specified vertices.
size_t getNumVertices() const
Get the number of vertices stored in the mesh.
size_t addVertex(const agx::Vec3 &position)
Add a vertex to the object on the specified position.
agx::Real getFaceArea(size_t face) const
Get the area of a face.
Base class providing referencing counted objects.
Vector containing 'raw' data.
The agxUtil namespace contain classes and methods for utility functionality.