Blender V2.61 - r43446
Defines | Functions

btSoftBodyHelpers.cpp File Reference

#include "btSoftBodyInternals.h"
#include <stdio.h>
#include <string.h>
#include "btSoftBodyHelpers.h"
#include "LinearMath/btConvexHull.h"

Go to the source code of this file.

Defines

#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
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)

Define Documentation

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

Function Documentation

template<typename T , typename Q >
static void add ( btAlignedObjectArray< T > &  items,
const Q &  value 
) [inline, static]
template<typename T >
static T average ( const btAlignedObjectArray< T > &  items) [inline, static]

Definition at line 118 of file btSoftBodyHelpers.cpp.

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

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

Definition at line 33 of file btSoftBodyHelpers.cpp.

References btIDebugDraw::drawLine().

Referenced by drawTree().

static void drawTree ( btIDebugDraw idraw,
const btDbvtNode node,
int  depth,
const btVector3 &  ncolor,
const btVector3 &  lcolor,
int  mindepth,
int  maxdepth 
) [static]
static void drawVertex ( btIDebugDraw idraw,
const btVector3 &  x,
btScalar  s,
const btVector3 &  c 
) [static]

btSoftBodyHelpers.cpp by Nathanael Presson

Definition at line 24 of file btSoftBodyHelpers.cpp.

References btIDebugDraw::drawLine().

Referenced by btSoftBodyHelpers::Draw(), and btSoftBodyHelpers::DrawFrame().

template<typename T , typename Q >
static void mul ( btAlignedObjectArray< T > &  items,
const Q &  value 
) [inline, static]
static int nextLine ( const char *  buffer) [static]

Definition at line 900 of file btSoftBodyHelpers.cpp.

Referenced by btSoftBodyHelpers::CreateFromTetGenData().

template<typename T >
static T sum ( const btAlignedObjectArray< T > &  items) [inline, static]

Definition at line 82 of file btSoftBodyHelpers.cpp.

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

Referenced by ATTRIBUTE_ALIGNED16(), average(), BLI_gTurbulence(), blur_single_image(), blur_with_reference(), brightness_mean(), brightness_standard_deviation(), btDbvtBroadphase::calculateOverlappingPairs(), btConvexTriangleMeshShape::calculatePrincipalAxisTransform(), WTURBULENCE::computeEnergy(), BSP_CSGMesh::CountTriangles(), diffuse_shv3(), do_weight_paint_normalize_all(), do_weight_paint_normalize_all_active(), TNT::dot_prod(), gjkepa2_impl::EPA::Evaluate(), btQuaternion::farthest(), freeraytree(), btSoftBody::generateBendingConstraints(), TNT::LU_solve(), make_gausstab(), makeNurbcurve(), makeNurbfaces(), TNT::matmult(), md5_stream(), btQuaternion::nearest(), noise_turbulence(), occ_compute_bounces(), overlapped_curve(), p_stretch_compute_vertex(), TNT::QR_factor(), TNT::QR_solve(), TNT::R_solve(), AUD_ChannelMapperReader::read(), btSequentialImpulseConstraintSolver::resolveSingleConstraintRowGeneric(), btSequentialImpulseConstraintSolver::resolveSingleConstraintRowGenericSIMD(), btSequentialImpulseConstraintSolver::resolveSingleConstraintRowLowerLimit(), btSequentialImpulseConstraintSolver::resolveSingleConstraintRowLowerLimitSIMD(), btSequentialImpulseConstraintSolver::resolveSplitPenetrationImpulseCacheFriendly(), btSequentialImpulseConstraintSolver::resolveSplitPenetrationSIMD(), sh_eval(), shader_bsdf_sample(), btRotationalLimitMotor::solveAngularLimits(), btSequentialImpulseConstraintSolver::solveGroupCacheFriendlyFinish(), btSequentialImpulseConstraintSolver::solveGroupCacheFriendlySetup(), and btTranslationalLimitMotor::solveLinearAxis().

static btScalar tetravolume ( const btVector3 &  x0,
const btVector3 &  x1,
const btVector3 &  x2,
const btVector3 &  x3 
) [inline, static]

Definition at line 125 of file btSoftBodyHelpers.cpp.

References btCross(), and btDot().