Bullet Collision Detection & Physics Library
|
Wrapper for vertex data information. More...
#include <btSoftBodySolverData.h>
Classes | |
class | VertexDescription |
Class describing a vertex for input into the system. More... | |
Public Member Functions | |
btSoftBodyVertexData () | |
virtual | ~btSoftBodyVertexData () |
virtual void | clear () |
int | getNumVertices () |
int | getClothIdentifier (int vertexIndex) |
void | setVertexAt (const VertexDescription &vertex, int vertexIndex) |
void | createVertices (int numVertices, int clothIdentifier, int maxVertices=0) |
Create numVertices new vertices for cloth clothIdentifier maxVertices allows a buffer zone of extra vertices for alignment or tearing reasons. More... | |
Vectormath::Aos::Point3 & | getPosition (int vertexIndex) |
Return a reference to the position of vertex vertexIndex as stored on the host. More... | |
Vectormath::Aos::Point3 | getPosition (int vertexIndex) const |
Vectormath::Aos::Point3 & | getPreviousPosition (int vertexIndex) |
Return a reference to the previous position of vertex vertexIndex as stored on the host. More... | |
Vectormath::Aos::Vector3 & | getVelocity (int vertexIndex) |
Return a reference to the velocity of vertex vertexIndex as stored on the host. More... | |
Vectormath::Aos::Vector3 & | getForceAccumulator (int vertexIndex) |
Return a reference to the force accumulator of vertex vertexIndex as stored on the host. More... | |
Vectormath::Aos::Vector3 & | getNormal (int vertexIndex) |
Return a reference to the normal of vertex vertexIndex as stored on the host. More... | |
Vectormath::Aos::Vector3 | getNormal (int vertexIndex) const |
float & | getInverseMass (int vertexIndex) |
Return a reference to the inverse mass of vertex vertexIndex as stored on the host. More... | |
float & | getArea (int vertexIndex) |
Get access to the area controlled by this vertex. More... | |
int & | getTriangleCount (int vertexIndex) |
Get access to the array of how many triangles touch each vertex. 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 (bool bCopy=false, bool bCopyMinimum=true) |
Move data to host memory from the accelerator if bCopy is false. More... | |
btAlignedObjectArray < Vectormath::Aos::Point3 > & | getVertexPositions () |
Wrapper for vertex data information.
By wrapping it like this we stand a good chance of being able to optimise for storage format easily. It should also help us make sure all the data structures remain consistent.
Definition at line 312 of file btSoftBodySolverData.h.
|
inline |
Definition at line 395 of file btSoftBodySolverData.h.
|
inlinevirtual |
Definition at line 399 of file btSoftBodySolverData.h.
|
inlinevirtual |
Definition at line 403 of file btSoftBodySolverData.h.
|
inline |
Create numVertices new vertices for cloth clothIdentifier maxVertices allows a buffer zone of extra vertices for alignment or tearing reasons.
Definition at line 442 of file btSoftBodySolverData.h.
|
inline |
Get access to the area controlled by this vertex.
Definition at line 529 of file btSoftBodySolverData.h.
|
inline |
Definition at line 421 of file btSoftBodySolverData.h.
|
inline |
Return a reference to the force accumulator of vertex vertexIndex as stored on the host.
Definition at line 500 of file btSoftBodySolverData.h.
|
inline |
Return a reference to the inverse mass of vertex vertexIndex as stored on the host.
Definition at line 521 of file btSoftBodySolverData.h.
|
inline |
Return a reference to the normal of vertex vertexIndex as stored on the host.
Definition at line 508 of file btSoftBodySolverData.h.
|
inline |
Definition at line 513 of file btSoftBodySolverData.h.
|
inline |
Definition at line 416 of file btSoftBodySolverData.h.
|
inline |
Return a reference to the position of vertex vertexIndex as stored on the host.
Definition at line 471 of file btSoftBodySolverData.h.
|
inline |
Definition at line 476 of file btSoftBodySolverData.h.
|
inline |
Return a reference to the previous position of vertex vertexIndex as stored on the host.
Definition at line 484 of file btSoftBodySolverData.h.
|
inline |
Get access to the array of how many triangles touch each vertex.
Definition at line 537 of file btSoftBodySolverData.h.
|
inline |
Return a reference to the velocity of vertex vertexIndex as stored on the host.
Definition at line 492 of file btSoftBodySolverData.h.
|
inline |
Definition at line 576 of file btSoftBodySolverData.h.
|
inlinevirtual |
Move data to host memory from the accelerator if bCopy is false.
If bCopy is true, copy data to host memory from the accelerator so that data won't be moved to accelerator when moveToAccelerator() is called next time. If bCopyMinimum is true, only vertex position and normal are copied. bCopyMinimum will be meaningful only if bCopy is true. The CPU version will always return that it has moved it.
Reimplemented in btSoftBodyVertexDataDX11, and btSoftBodyVertexDataOpenCL.
Definition at line 571 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 btSoftBodyVertexDataDX11, and btSoftBodyVertexDataOpenCL.
Definition at line 558 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 btSoftBodyVertexDataDX11, and btSoftBodyVertexDataOpenCL.
Definition at line 549 of file btSoftBodySolverData.h.
|
inline |
Definition at line 426 of file btSoftBodySolverData.h.
|
protected |
Definition at line 384 of file btSoftBodySolverData.h.
|
protected |
Definition at line 391 of file btSoftBodySolverData.h.
|
protected |
Definition at line 388 of file btSoftBodySolverData.h.
|
protected |
Definition at line 390 of file btSoftBodySolverData.h.
|
protected |
Definition at line 389 of file btSoftBodySolverData.h.
|
protected |
Definition at line 385 of file btSoftBodySolverData.h.
|
protected |
Definition at line 386 of file btSoftBodySolverData.h.
|
protected |
Definition at line 392 of file btSoftBodySolverData.h.
|
protected |
Definition at line 387 of file btSoftBodySolverData.h.