TSSkinMesh Class Reference

#include <tsMesh.h>

Inheritance diagram for TSSkinMesh:

Inheritance graph
[legend]
List of all members.

Public Types

typedef TSMesh Parent

Public Member Functions

GFXVertexBufferHandle< GFXVertexPNTTB > & getVertexBuffer ()
void render (S32 frame, S32 matFrame, TSMaterialList *)
bool buildPolyList (S32 frame, AbstractPolyList *polyList, U32 &surfaceKey, TSMaterialList *materials)
bool castRay (S32 frame, const Point3F &start, const Point3F &end, RayInfo *rayInfo, TSMaterialList *materials)
bool buildConvexHull ()
 returns false if not convex (still builds planes)
void computeBounds (MatrixF &transform, Box3F &bounds, S32 frame, Point3F *center, F32 *radius)
void assemble (bool skip)
 persist methods...
void disassemble ()
 TSSkinMesh ()

Public Attributes

FixedVector< F32weight
 vectors that define the vertex, weight, bone tuples
FixedVector< S32boneIndex
FixedVector< S32vertexIndex
FixedVector< S32nodeIndex
 vectors indexed by bone number
FixedVector< MatrixFinitialTransforms
FixedVector< Point3FinitialVerts
 initial values of verts and normals these get transformed into initial bone space, from there into world space relative to current bone pos, and then weighted by bone weights.
FixedVector< Point3FinitialNorms

Static Public Attributes

static Vector< MatrixF * > smInitTransformList
 variables used during assembly (for skipping mesh detail levels on load and for sharing verts between meshes)
static Vector< S32 * > smVertexIndexList
static Vector< S32 * > smBoneIndexList
static Vector< F32 * > smWeightList
static Vector< S32 * > smNodeIndexList

Private Member Functions

void updateSkin ()
 set verts and normals...

Member Typedef Documentation


Constructor & Destructor Documentation

TSSkinMesh::TSSkinMesh (  )  [inline]


Member Function Documentation

GFXVertexBufferHandle<GFXVertexPNTTB>& TSSkinMesh::getVertexBuffer (  )  [virtual]

Reimplemented from TSMesh.

void TSSkinMesh::render ( S32  frame,
S32  matFrame,
TSMaterialList  
) [virtual]

Reimplemented from TSMesh.

bool TSSkinMesh::buildPolyList ( S32  frame,
AbstractPolyList polyList,
U32 surfaceKey,
TSMaterialList materials 
) [virtual]

Reimplemented from TSMesh.

bool TSSkinMesh::castRay ( S32  frame,
const Point3F start,
const Point3F end,
RayInfo rayInfo,
TSMaterialList materials 
) [virtual]

Reimplemented from TSMesh.

bool TSSkinMesh::buildConvexHull (  )  [virtual]

returns false if not convex (still builds planes)

Reimplemented from TSMesh.

void TSSkinMesh::computeBounds ( MatrixF transform,
Box3F bounds,
S32  frame,
Point3F center,
F32 radius 
) [virtual]

Reimplemented from TSMesh.

void TSSkinMesh::assemble ( bool  skip  )  [virtual]

persist methods...

Reimplemented from TSMesh.

void TSSkinMesh::disassemble (  )  [virtual]

Reimplemented from TSMesh.

void TSSkinMesh::updateSkin (  )  [private]

set verts and normals...


Member Data Documentation

vectors that define the vertex, weight, bone tuples

vectors indexed by bone number

initial values of verts and normals these get transformed into initial bone space, from there into world space relative to current bone pos, and then weighted by bone weights.

..

variables used during assembly (for skipping mesh detail levels on load and for sharing verts between meshes)