Bullet Collision Detection & Physics Library
Macros | Functions
btSoftBodyHelpers.cpp File Reference
#include "btSoftBodyInternals.h"
#include <stdio.h>
#include <string.h>
#include "btSoftBodyHelpers.h"
#include "LinearMath/btConvexHull.h"
#include "LinearMath/btConvexHullComputer.h"
Include dependency graph for btSoftBodyHelpers.cpp:

Go to the source code of this file.

Macros

#define USE_NEW_CONVEX_HULL_COMPUTER
 
#define IDX(_x_, _y_)   ((_y_)*rx+(_x_))
 
#define IDX(_x_, _y_)   ((_y_)*rx+(_x_))
 
#define IDX(_x_, _y_)   ((_y_)*maxidx+(_x_))
 

Functions

static void drawVertex (btIDebugDraw *idraw, const btVector3 &x, btScalar s, const btVector3 &c)
 btSoftBodyHelpers.cpp by Nathanael Presson More...
 
static void drawBox (btIDebugDraw *idraw, const btVector3 &mins, const btVector3 &maxs, const btVector3 &color)
 
static void drawTree (btIDebugDraw *idraw, const btDbvtNode *node, int depth, const btVector3 &ncolor, const btVector3 &lcolor, int mindepth, int maxdepth)
 
template<typename T >
static T sum (const btAlignedObjectArray< T > &items)
 
template<typename T , typename Q >
static void add (btAlignedObjectArray< T > &items, const Q &value)
 
template<typename T , typename Q >
static void mul (btAlignedObjectArray< T > &items, const Q &value)
 
template<typename T >
static T average (const btAlignedObjectArray< T > &items)
 
static btScalar tetravolume (const btVector3 &x0, const btVector3 &x1, const btVector3 &x2, const btVector3 &x3)
 
static int nextLine (const char *buffer)
 

Macro Definition Documentation

#define IDX (   _x_,
  _y_ 
)    ((_y_)*rx+(_x_))
#define IDX (   _x_,
  _y_ 
)    ((_y_)*rx+(_x_))
#define IDX (   _x_,
  _y_ 
)    ((_y_)*maxidx+(_x_))
#define USE_NEW_CONVEX_HULL_COMPUTER

Function Documentation

template<typename T , typename Q >
static void add ( btAlignedObjectArray< T > &  items,
const Q &  value 
)
inlinestatic

Definition at line 100 of file btSoftBodyHelpers.cpp.

template<typename T >
static T average ( const btAlignedObjectArray< T > &  items)
inlinestatic

Definition at line 120 of file btSoftBodyHelpers.cpp.

static void drawBox ( btIDebugDraw idraw,
const btVector3 mins,
const btVector3 maxs,
const btVector3 color 
)
static

Definition at line 35 of file btSoftBodyHelpers.cpp.

static void drawTree ( btIDebugDraw idraw,
const btDbvtNode node,
int  depth,
const btVector3 ncolor,
const btVector3 lcolor,
int  mindepth,
int  maxdepth 
)
static

Definition at line 57 of file btSoftBodyHelpers.cpp.

static void drawVertex ( btIDebugDraw idraw,
const btVector3 x,
btScalar  s,
const btVector3 c 
)
static

btSoftBodyHelpers.cpp by Nathanael Presson

Definition at line 26 of file btSoftBodyHelpers.cpp.

template<typename T , typename Q >
static void mul ( btAlignedObjectArray< T > &  items,
const Q &  value 
)
inlinestatic

Definition at line 110 of file btSoftBodyHelpers.cpp.

static int nextLine ( const char *  buffer)
static

Definition at line 933 of file btSoftBodyHelpers.cpp.

template<typename T >
static T sum ( const btAlignedObjectArray< T > &  items)
inlinestatic

Definition at line 84 of file btSoftBodyHelpers.cpp.

static btScalar tetravolume ( const btVector3 x0,
const btVector3 x1,
const btVector3 x2,
const btVector3 x3 
)
inlinestatic

Definition at line 127 of file btSoftBodyHelpers.cpp.