|
Bullet Collision Detection & Physics Library
|
The btConvexHullShape implements an implicit convex hull of an array of vertices. More...
#include <btConvexHullShape.h>


Private Attributes | |
| btAlignedObjectArray< btVector3 > | m_unscaledPoints |
Additional Inherited Members | |
Protected Member Functions inherited from btPolyhedralConvexAabbCachingShape | |
| void | setCachedLocalAabb (const btVector3 &aabbMin, const btVector3 &aabbMax) |
| void | getCachedLocalAabb (btVector3 &aabbMin, btVector3 &aabbMax) const |
| btPolyhedralConvexAabbCachingShape () | |
Protected Member Functions inherited from btConvexInternalShape | |
| btConvexInternalShape () | |
Protected Attributes inherited from btPolyhedralConvexShape | |
| btConvexPolyhedron * | m_polyhedron |
Protected Attributes inherited from btConvexInternalShape | |
| btVector3 | m_localScaling |
| btVector3 | m_implicitShapeDimensions |
| btScalar | m_collisionMargin |
| btScalar | m_padding |
Protected Attributes inherited from btCollisionShape | |
| int | m_shapeType |
| void * | m_userPointer |
| int | m_userIndex |
The btConvexHullShape implements an implicit convex hull of an array of vertices.
Bullet provides a general and fast collision detector for convex shapes based on GJK and EPA using localGetSupportingVertex.
Definition at line 26 of file btConvexHullShape.h.
| btConvexHullShape::btConvexHullShape | ( | const btScalar * | points = 0, |
| int | numPoints = 0, | ||
| int | stride = sizeof(btVector3) ) |
this constructor optionally takes in a pointer to points.
Each point is assumed to be 3 consecutive btScalar (x,y,z), the striding defines the number of bytes between each point, in memory. It is easier to not pass any points in the constructor, and just add one point at a time, using addPoint. btConvexHullShape make an internal copy of the points.
Definition at line 28 of file btConvexHullShape.cpp.
Definition at line 54 of file btConvexHullShape.cpp.
|
virtual |
Reimplemented from btPolyhedralConvexShape.
Definition at line 78 of file btConvexHullShape.cpp.
| btConvexHullShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
|
inlinevirtual |
Reimplemented from btConvexInternalShape.
Definition at line 114 of file btConvexHullShape.h.
Implements btPolyhedralConvexShape.
Definition at line 152 of file btConvexHullShape.cpp.
Implements btCollisionShape.
Definition at line 79 of file btConvexHullShape.h.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 147 of file btConvexHullShape.cpp.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 166 of file btConvexHullShape.cpp.
|
inline |
Definition at line 65 of file btConvexHullShape.h.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 142 of file btConvexHullShape.cpp.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 171 of file btConvexHullShape.cpp.
getPoints is obsolete, please use getUnscaledPoints
Definition at line 53 of file btConvexHullShape.h.
Definition at line 60 of file btConvexHullShape.h.
|
inline |
Definition at line 42 of file btConvexHullShape.h.
Definition at line 47 of file btConvexHullShape.h.
Implements btPolyhedralConvexShape.
Definition at line 161 of file btConvexHullShape.cpp.
Implements btPolyhedralConvexShape.
Definition at line 178 of file btConvexHullShape.cpp.
Reimplemented from btConvexInternalShape.
Definition at line 108 of file btConvexHullShape.cpp.
|
virtual |
Reimplemented from btPolyhedralConvexShape.
Definition at line 62 of file btConvexHullShape.cpp.
| void btConvexHullShape::optimizeConvexHull | ( | ) |
Definition at line 126 of file btConvexHullShape.cpp.
|
virtual |
Reimplemented from btConvexShape.
Definition at line 221 of file btConvexHullShape.cpp.
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btConvexInternalShape.
Definition at line 185 of file btConvexHullShape.cpp.
in case we receive negative scaling
Reimplemented from btPolyhedralConvexAabbCachingShape.
Definition at line 48 of file btConvexHullShape.cpp.
|
private |
Definition at line 28 of file btConvexHullShape.h.