Blender V2.61 - r43446
Defines | Variables

ntl_geometryobject.cpp File Reference

#include "ntl_geometryobject.h"
#include "ntl_world.h"
#include "ntl_matrices.h"
#include "elbeem.h"

Go to the source code of this file.

Defines

#define TRI_UVOFFSET   (1./4.)
#define GEOINIT_STRINGS   10
#define ADD_CHANNEL_VEC(dst, nvals, val)
#define ADD_CHANNEL_FLOAT(dst, nvals, val)

Variables

static const char * initStringStrs [GEOINIT_STRINGS]
static int initStringTypes [GEOINIT_STRINGS]

Detailed Description

Definition in file ntl_geometryobject.cpp.


Define Documentation

#define ADD_CHANNEL_FLOAT (   dst,
  nvals,
  val 
)
Value:
valsfloat.clear(); time.clear(); elbeemSimplifyChannelFloat(val,&nvals); \
        for(int i=0; i<(nvals); i++) { \
            valsfloat.push_back( (val)[i*2+0] ); \
            time.push_back( (val)[i*2+1] ); \
        } \
        (dst) = AnimChannel< float >(valsfloat,time);

Definition at line 329 of file ntl_geometryobject.cpp.

Referenced by ntlGeometryObject::initChannels().

#define ADD_CHANNEL_VEC (   dst,
  nvals,
  val 
)
Value:
vals.clear(); time.clear(); elbeemSimplifyChannelVec3(val,&nvals); \
        for(int i=0; i<(nvals); i++) { \
            vals.push_back(ntlVec3Gfx((val)[i*4+0], (val)[i*4+1],(val)[i*4+2] )); \
            time.push_back( (val)[i*4+3] ); \
        } \
        (dst) = AnimChannel< ntlVec3Gfx >(vals,time);

Definition at line 321 of file ntl_geometryobject.cpp.

Referenced by ntlGeometryObject::initChannels().

#define GEOINIT_STRINGS   10

Definition at line 90 of file ntl_geometryobject.cpp.

Referenced by ntlGeometryObject::initialize().

#define TRI_UVOFFSET   (1./4.)

Variable Documentation

const char* initStringStrs[GEOINIT_STRINGS] [static]
Initial value:
 {
    "fluid",
    "bnd_no","bnd_noslip",
    "bnd_free","bnd_freeslip",
    "bnd_part","bnd_partslip",
    "inflow", "outflow", "control",
}

Definition at line 91 of file ntl_geometryobject.cpp.

Referenced by ntlGeometryObject::initialize().

int initStringTypes[GEOINIT_STRINGS] [static]