Bullet Collision Detection & Physics Library
Classes | Macros | Typedefs | 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.

Classes

class  LinkDeps_t
 

Macros

#define USE_NEW_CONVEX_HULL_COMPUTER
 
#define REOP_NOT_DEPENDENT   -1
 
#define REOP_NODE_COMPLETE   -2
 
#define IDX(_x_, _y_)   ((_y_)*rx+(_x_))
 
#define IDX(_x_, _y_)   ((_y_)*rx+(_x_))
 
#define IDX(_x_, _y_)   ((_y_)*maxidx+(_x_))
 

Typedefs

typedef LinkDeps_tLinkDepsPtr_t
 

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 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 REOP_NODE_COMPLETE   -2

Definition at line 535 of file btSoftBodyHelpers.cpp.

#define REOP_NOT_DEPENDENT   -1

Definition at line 534 of file btSoftBodyHelpers.cpp.

#define USE_NEW_CONVEX_HULL_COMPUTER

Typedef Documentation

Definition at line 531 of file btSoftBodyHelpers.cpp.

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 1097 of file btSoftBodyHelpers.cpp.

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

Definition at line 84 of file btSoftBodyHelpers.cpp.