Blender
V3.3
|
#include "LinearMath/btAlignedObjectArray.h"
#include "BulletCollision/CollisionShapes/btConvexShape.h"
Go to the source code of this file.
Functions | |
static btVector3 * | getUnitSpherePoints (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 btVector3 * | getVertexPointer () const |
const unsigned int * | getIndexPointer () const |
Variables | |
btShapeHull | |
btShapeHull implemented by John McCutchan. More... | |
btAlignedObjectArray< unsigned int > | m_indices |
unsigned int | m_numIndices |
const btConvexShape * | m_shape |
BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
btShapeHull | ( | const btConvexShape * | shape | ) |
Definition at line 38 of file btShapeHull.cpp.
References btVector3, HullLibrary::CreateConvexHull(), getUnitSpherePoints(), m_indices, HullResult::m_Indices, m_numIndices, HullResult::m_OutputVertices, m_shape, m_vertices, MAX_PREFERRED_PENETRATION_DIRECTIONS, HullDesc::mFlags, HullResult::mNumIndices, HullResult::mNumOutputVertices, HullDesc::mVcount, HullDesc::mVertexStride, HullDesc::mVertices, norm(), NUM_UNITSPHERE_POINTS, NUM_UNITSPHERE_POINTS_HIGHRES, QE_FAIL, QF_TRIANGLES, HullLibrary::ReleaseResult(), and btAlignedObjectArray< T >::resize().
const unsigned int* getIndexPointer | ( | ) | const |
Definition at line 54 of file btShapeHull.h.
References m_indices.
|
static |
Definition at line 113 of file btShapeHull.cpp.
References btVector3, MAX_PREFERRED_PENETRATION_DIRECTIONS, NUM_UNITSPHERE_POINTS, and NUM_UNITSPHERE_POINTS_HIGHRES.
Referenced by buildHull().
const btVector3* getVertexPointer | ( | ) | const |
Definition at line 50 of file btShapeHull.h.
References m_vertices.
int btShapeHull::numIndices | ( | ) | const |
Definition at line 108 of file btShapeHull.cpp.
References m_numIndices.
Referenced by GIM_BOX_TREE::_calc_splitting_axis(), btBvhTree::_calc_splitting_axis(), btQuantizedBvhTree::_calc_splitting_axis(), GIM_BOX_TREE::_sort_and_calc_splitting_index(), btBvhTree::_sort_and_calc_splitting_index(), btQuantizedBvhTree::_sort_and_calc_splitting_index(), calcSplittingAxis(), btCollisionWorldImporter::createStridingMeshInterfaceData(), and sortAndCalcSplittingIndex().
int btShapeHull::numTriangles | ( | ) | const |
Definition at line 98 of file btShapeHull.cpp.
References m_numIndices.
Referenced by btTriangleIndexVertexArray(), btTriangleIndexVertexMaterialArray(), getLockedMaterialBase(), getLockedReadOnlyMaterialBase(), and getMaterialProperties().
int btShapeHull::numVertices | ( | ) | const |
Definition at line 103 of file btShapeHull.cpp.
References m_numVertices, and m_vertices.
Referenced by btTriangleIndexVertexArray(), btPolyhedralContactClipping::clipHullAgainstHull(), btDefaultSoftBodySolver::copySoftBodyToVertexBuffer(), emptySimplex(), GenerateSharedVerticesIndexList(), getSimplex(), initialize2(), initializePolyhedralFeatures(), inSimplex(), maxVertex(), Freestyle::FEdgeXDetector::ProcessRidgeFace(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), Freestyle::FEdgeXDetector::ProcessSuggestiveContourFace(), reduceVertices(), and updateClosestVectorAndPoints().
btShapeHull::~btShapeHull | ( | ) |
Definition at line 32 of file btShapeHull.cpp.
References btAlignedObjectArray< T >::clear(), m_indices, and m_vertices.
btShapeHull::btShapeHull |
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.
btAlignedObjectArray<unsigned int> m_indices |
Definition at line 32 of file btShapeHull.h.
Referenced by buildHull(), getIndexPointer(), and ~btShapeHull().
unsigned int m_numIndices |
Definition at line 33 of file btShapeHull.h.
Referenced by buildHull(), numIndices(), and numTriangles().
const btConvexShape* m_shape |
Definition at line 34 of file btShapeHull.h.
Referenced by buildHull().