Blender V5.0
btSoftBody.cpp File Reference

Go to the source code of this file.

Classes

Macros

#define IDX(_x_, _y_)
#define NEXTRAND   (seed = (1664525L * seed + 1013904223L) & 0xffffffff)
#define PTR2IDX(_p_, _b_)
#define IDX2PTR(_p_, _b_)

Functions

static btDbvtNodebuildTreeBottomUp (btAlignedObjectArray< btDbvtNode * > &leafNodes, btAlignedObjectArray< btAlignedObjectArray< int > > &adj)
 btSoftBody implementation by Nathanael Presson
static btDbvntNodecopyToDbvnt (const btDbvtNode *n)
static void calculateNormalCone (btDbvntNode *root)
static void getBarycentric (const btVector3 &p, btVector3 &a, btVector3 &b, btVector3 &c, btVector3 &bary)
static btScalar Dot4 (const btVector4 &a, const btVector4 &b)

Macro Definition Documentation

◆ IDX

◆ IDX2PTR

#define IDX2PTR ( _p_,
_b_ )
Value:
map ? (&(_b_)[map[(((char*)_p_) - (char*)0)]]) : (&(_b_)[(((char*)_p_) - (char*)0)])

Referenced by btSoftBody::indicesToPointers().

◆ NEXTRAND

#define NEXTRAND   (seed = (1664525L * seed + 1013904223L) & 0xffffffff)

◆ PTR2IDX

#define PTR2IDX ( _p_,
_b_ )
Value:
reinterpret_cast<btSoftBody::Node*>((_p_) - (_b_))

Referenced by btSoftBody::pointersToIndices().

Function Documentation

◆ buildTreeBottomUp()

◆ calculateNormalCone()

◆ copyToDbvnt()

btDbvntNode * copyToDbvnt ( const btDbvtNode * n)
inlinestatic

◆ Dot4()

btScalar Dot4 ( const btVector4 & a,
const btVector4 & b )
static

Definition at line 3495 of file btSoftBody.cpp.

References b.

Referenced by btSoftBody::updateDeformation().

◆ getBarycentric()

void getBarycentric ( const btVector3 & p,
btVector3 & a,
btVector3 & b,
btVector3 & c,
btVector3 & bary )
static

Definition at line 2791 of file btSoftBody.cpp.

References b, btVector3, and v2.

Referenced by btSoftBody::checkDeformableFaceContact().