58 const char* sourceName,
65 virtual bool hasSupportFunction()
const override;
77 Convex* shallowCopy()
const;
89 virtual Shape *clone()
const override;
120 if ( m_collisionMeshData->m_vertices.empty() )
125 for (
size_t i = 0; i < m_collisionMeshData->m_vertices.size(); ++i) {
126 const agx::Real dist = m_collisionMeshData->m_vertices[i] * supportDirection;
127 if (dist > maxDist) {
132 return m_collisionMeshData->m_vertices[maxIndex];
Removes exactly identical duplicates in the vertices, as well as (resulting or previously existing) t...
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define AGXPHYSICS_EXPORT
virtual bool hasSupportFunction() const override
Inherited from Shape.
A convex class for geometric intersection tests.
virtual agx::Vec3 getSupportPoint(const agx::Vec3 &supportDirection) const override
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
AGXCORE_EXPORT const Real RealMax
Triangle mesh for geometric intersection tests.
AGX_DECLARE_POINTER_TYPES(SpaceListener)