Blender V5.0
btShapeHull.h File Reference

Go to the source code of this file.

Functions

static btVector3getUnitSpherePoints (int highres=0)
 BT_DECLARE_ALIGNED_ALLOCATOR ()
 btShapeHull (const btConvexShape *shape)
 ~btShapeHull ()
bool buildHull (btScalar margin, int highres=0)
int numTriangles () const
int numVertices () const
int numIndices () const
const btVector3getVertexPointer () const
const unsigned int * getIndexPointer () const

Variables

 btShapeHull
 btShapeHull implemented by John McCutchan.
btAlignedObjectArray< unsigned int > m_indices
unsigned int m_numIndices
const btConvexShapem_shape

Function Documentation

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btShapeHull()

btShapeHull ( const btConvexShape * shape)

References btConvexShape().

◆ buildHull()

◆ getIndexPointer()

const unsigned int * getIndexPointer ( ) const

Definition at line 54 of file btShapeHull.h.

References m_indices.

◆ getUnitSpherePoints()

btVector3 * btShapeHull::getUnitSpherePoints ( int highres = 0)
static

◆ getVertexPointer()

const btVector3 * getVertexPointer ( ) const

Definition at line 50 of file btShapeHull.h.

References btVector3, and m_vertices.

◆ numIndices()

◆ numTriangles()

◆ numVertices()

◆ ~btShapeHull()

btShapeHull::~btShapeHull ( )

Definition at line 32 of file btShapeHull.cpp.

References m_indices, and m_vertices.

Variable Documentation

◆ btShapeHull

btShapeHull::btShapeHull
Initial value:

btShapeHull implemented by John McCutchan.

The btShapeHull class takes a btConvexShape, builds a simplified convex hull using btConvexHull and provides triangle indices and vertices. It can be useful for to simplify a complex convex object and for visualization of a non-polyhedral convex object. It approximates the convex hull using the supporting vertex of 42 directions.

Definition at line 28 of file btShapeHull.h.

◆ m_indices

Definition at line 32 of file btShapeHull.h.

Referenced by buildHull(), getIndexPointer(), and ~btShapeHull().

◆ m_numIndices

unsigned int m_numIndices

Definition at line 33 of file btShapeHull.h.

Referenced by buildHull(), numIndices(), and numTriangles().

◆ m_shape

const btConvexShape* m_shape

Definition at line 34 of file btShapeHull.h.

Referenced by buildHull().