Bullet Collision Detection & Physics Library
|
The btConvexHullShape implements an implicit convex hull of an array of vertices. More...
#include <btConvexHullShape.h>
Protected Attributes | |
btAlignedObjectArray< btVector3 > | m_unscaledPoints |
![]() | |
btConvexPolyhedron * | m_polyhedron |
![]() | |
btVector3 | m_localScaling |
btVector3 | m_implicitShapeDimensions |
btScalar | m_collisionMargin |
btScalar | m_padding |
![]() | |
int | m_shapeType |
void * | m_userPointer |
int | m_userIndex |
int | m_userIndex2 |
Additional Inherited Members | |
![]() | |
void | setCachedLocalAabb (const btVector3 &aabbMin, const btVector3 &aabbMax) |
void | getCachedLocalAabb (btVector3 &aabbMin, btVector3 &aabbMax) const |
btPolyhedralConvexAabbCachingShape () | |
![]() | |
btConvexInternalShape () | |
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 25 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 51 of file btConvexHullShape.cpp.
|
virtual |
Reimplemented from btPolyhedralConvexShape.
Definition at line 74 of file btConvexHullShape.cpp.
btConvexHullShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
|
inlinevirtual |
Reimplemented from btConvexInternalShape.
Definition at line 112 of file btConvexHullShape.h.
Implements btPolyhedralConvexShape.
Definition at line 140 of file btConvexHullShape.cpp.
Implements btCollisionShape.
Definition at line 76 of file btConvexHullShape.h.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 135 of file btConvexHullShape.cpp.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 153 of file btConvexHullShape.cpp.
|
inline |
Definition at line 64 of file btConvexHullShape.h.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 130 of file btConvexHullShape.cpp.
|
virtual |
Implements btPolyhedralConvexShape.
Definition at line 158 of file btConvexHullShape.cpp.
getPoints is obsolete, please use getUnscaledPoints
Definition at line 52 of file btConvexHullShape.h.
Definition at line 59 of file btConvexHullShape.h.
|
inline |
Definition at line 41 of file btConvexHullShape.h.
Definition at line 46 of file btConvexHullShape.h.
Implements btPolyhedralConvexShape.
Definition at line 148 of file btConvexHullShape.cpp.
Implements btPolyhedralConvexShape.
Definition at line 164 of file btConvexHullShape.cpp.
Reimplemented from btConvexInternalShape.
Definition at line 99 of file btConvexHullShape.cpp.
|
virtual |
Reimplemented from btPolyhedralConvexShape.
Definition at line 58 of file btConvexHullShape.cpp.
void btConvexHullShape::optimizeConvexHull | ( | ) |
Definition at line 116 of file btConvexHullShape.cpp.
|
virtual |
Reimplemented from btConvexShape.
Definition at line 207 of file btConvexHullShape.cpp.
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btConvexInternalShape.
Definition at line 171 of file btConvexHullShape.cpp.
in case we receive negative scaling
Reimplemented from btPolyhedralConvexAabbCachingShape.
Definition at line 45 of file btConvexHullShape.cpp.
|
protected |
Definition at line 29 of file btConvexHullShape.h.