17#ifndef AGXCOLLIDE_MESHDATA_H
18#define AGXCOLLIDE_MESHDATA_H
54 size_t getNumTriangles()
const;
#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
Axis aligned bounding box implementation.
Class for data sharing only to be used by Mesh, its internal classes and children.
const agx::UInt32Vector & getHalfEdges() const
agx::SPDMatrix3x3 m_inertia
bool hasInternalCenterPoint() const
bool m_hasInternalCenterPoint
const agx::Real32Vector & getTriangleMaximumEdgeLengths() const
const agx::Vec3Vector & getNormals() const
agx::Real getVolume() const
agx::UInt32Vector m_halfEdges
CollisionMeshData * deepCopy() const
Creates a deep copy of all data. Caller takes ownership of pointer.
agx::Real getTotalMaximumEdgeLength() const
virtual ~CollisionMeshData()
Hiding destructor.
agx::Vec3Vector m_normals
agx::Vec3 getCenter() const
agx::Real m_totalMaximumEdgeLength
agx::Real32Vector m_triangleMaximumEdgeLengths
const agx::SPDMatrix3x3 & getInertia() const
agx::Real getBottomMargin() const
A convex class for geometric intersection tests.
Class for data sharing only to be used by HeightField.
virtual ~HeightFieldMeshData()
Hiding destructor.
HeightFieldMeshData * deepCopy() const
Creates a deep copy of all data. Caller takes ownership of pointer.
agx::Vec2u32 getResolution() const
agx::Real m_minAllowedHeight
agx::Vec2 getSize() const
agx::UInt32Vector m_boundIndices
A HeightField is a collision shape that can be created from a grid structure, like an image.
Stores triangle mesh data as triangle lists, i.e.
virtual ~MeshData()
Hiding destructor.
size_t getNumTriangles() const
agx::Vec3Vector & getVertices()
agx::UInt32Vector & getIndices()
const BoundingAABB & getBound() const
agx::UInt32Vector m_indices
agx::Vec3Vector m_vertices
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
Triangle mesh for geometric intersection tests.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Base class providing referencing counted objects.
Specialized type of matrices for holding symmetric positive definite matrices.
Smart pointer for handling referenced counted objects.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::ref_ptr< const CollisionMeshData > ConstCollisionMeshDataRef
agx::ref_ptr< MeshData > MeshDataRef
agx::ref_ptr< const MeshData > ConstMeshDataRef
agx::ref_ptr< CollisionMeshData > CollisionMeshDataRef
agx::ref_ptr< const HeightFieldMeshData > ConstHeightFieldMeshDataRef
agx::ref_ptr< HeightFieldMeshData > HeightFieldMeshDataRef