Blender V4.5
btSoftBodyHelpers.cpp File Reference
#include "btSoftBodyInternals.h"
#include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
#include <string.h>
#include <algorithm>
#include "btSoftBodyHelpers.h"
#include "LinearMath/btConvexHull.h"
#include "LinearMath/btConvexHullComputer.h"
#include <map>
#include <vector>

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_)
#define IDX(_x_, _y_)
#define IDX(_x_, _y_)

Typedefs

typedef LinkDeps_tLinkDepsPtr_t

Functions

static void drawVertex (btIDebugDraw *idraw, const btVector3 &x, btScalar s, const btVector3 &c)
 btSoftBodyHelpers.cpp by Nathanael Presson
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

◆ IDX [1/3]

#define IDX ( _x_,
_y_ )
Value:
((_y_)*maxidx + (_x_))

◆ IDX [2/3]

#define IDX ( _x_,
_y_ )
Value:
((_y_)*rx + (_x_))

◆ IDX [3/3]

#define IDX ( _x_,
_y_ )
Value:
((_y_)*rx + (_x_))

◆ REOP_NODE_COMPLETE

#define REOP_NODE_COMPLETE   -2

Definition at line 540 of file btSoftBodyHelpers.cpp.

Referenced by btSoftBodyHelpers::ReoptimizeLinkOrder().

◆ REOP_NOT_DEPENDENT

#define REOP_NOT_DEPENDENT   -1

Definition at line 539 of file btSoftBodyHelpers.cpp.

Referenced by btSoftBodyHelpers::ReoptimizeLinkOrder().

◆ USE_NEW_CONVEX_HULL_COMPUTER

#define USE_NEW_CONVEX_HULL_COMPUTER

Typedef Documentation

◆ LinkDepsPtr_t

Function Documentation

◆ add()

◆ average()

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

Definition at line 130 of file btSoftBodyHelpers.cpp.

References average(), btAlignedObjectArray< T >::size(), sum(), and T.

◆ drawBox()

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

Definition at line 39 of file btSoftBodyHelpers.cpp.

References btVector3, drawBox(), and btIDebugDraw::drawLine().

Referenced by drawBox(), and drawTree().

◆ drawTree()

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

◆ drawVertex()

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

◆ mul()

◆ nextLine()

int nextLine ( const char * buffer)
static

Definition at line 1121 of file btSoftBodyHelpers.cpp.

References nextLine().

Referenced by btSoftBodyHelpers::CreateFromTetGenData(), and nextLine().

◆ sum()

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

Definition at line 94 of file btSoftBodyHelpers.cpp.

References i, btAlignedObjectArray< T >::size(), T, and v.

Referenced by average().