Bullet Collision Detection & Physics Library
|
#include <btSoftBodySolverData.h>
Classes | |
class | TriangleDescription |
class | TriangleNodeSet |
Class representing a triangle as a set of three indices into the vertex array. More... | |
Public Member Functions | |
btSoftBodyTriangleData () | |
virtual | ~btSoftBodyTriangleData () |
virtual void | clear () |
int | getNumTriangles () |
virtual void | setTriangleAt (const TriangleDescription &triangle, int triangleIndex) |
virtual void | createTriangles (int numTriangles) |
const TriangleNodeSet & | getVertexSet (int triangleIndex) |
Return the vertex index set for triangle triangleIndex as stored on the host. More... | |
float & | getTriangleArea (int triangleIndex) |
Get access to the triangle area. More... | |
Vectormath::Aos::Vector3 & | getNormal (int triangleIndex) |
Get access to the normal vector for this triangle. More... | |
virtual bool | onAccelerator () |
Return true if data is on the accelerator. More... | |
virtual bool | moveToAccelerator () |
Move data from host memory to the accelerator. More... | |
virtual bool | moveFromAccelerator () |
Move data from host memory from the accelerator. More... | |
Protected Attributes | |
btAlignedObjectArray < TriangleNodeSet > | m_vertexIndices |
btAlignedObjectArray< float > | m_area |
btAlignedObjectArray < Vectormath::Aos::Vector3 > | m_normal |
Definition at line 583 of file btSoftBodySolverData.h.
|
inline |
Definition at line 656 of file btSoftBodySolverData.h.
|
inlinevirtual |
Definition at line 660 of file btSoftBodySolverData.h.
|
inlinevirtual |
Definition at line 665 of file btSoftBodySolverData.h.
|
inlinevirtual |
Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.
Definition at line 682 of file btSoftBodySolverData.h.
|
inline |
Get access to the normal vector for this triangle.
Definition at line 712 of file btSoftBodySolverData.h.
|
inline |
Definition at line 672 of file btSoftBodySolverData.h.
|
inline |
Get access to the triangle area.
Definition at line 704 of file btSoftBodySolverData.h.
|
inline |
Return the vertex index set for triangle triangleIndex as stored on the host.
Definition at line 696 of file btSoftBodySolverData.h.
|
inlinevirtual |
Move data from host memory from the accelerator.
The CPU version will always return that it has moved it.
Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.
Definition at line 740 of file btSoftBodySolverData.h.
|
inlinevirtual |
Move data from host memory to the accelerator.
The CPU version will always return that it has moved it.
Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.
Definition at line 731 of file btSoftBodySolverData.h.
|
inlinevirtual |
Return true if data is on the accelerator.
The CPU version of this class will return true here because the CPU is the same as the accelerator.
Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.
Definition at line 722 of file btSoftBodySolverData.h.
|
inlinevirtual |
Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.
Definition at line 677 of file btSoftBodySolverData.h.
|
protected |
Definition at line 652 of file btSoftBodySolverData.h.
|
protected |
Definition at line 653 of file btSoftBodySolverData.h.
|
protected |
Definition at line 651 of file btSoftBodySolverData.h.