torque Torque Game Engine Documentation
TGE Version 1.5.2

TSSkinMesh Class Reference

#include <tsMesh.h>

Inheritance diagram for TSSkinMesh:

Inheritance graph
[legend]

Public Types

typedef TSMesh Parent

Public Member Functions

void updateSkin ()
 set verts and normals...
void render (S32 frame, S32 matFrame, TSMaterialList *)
void renderShadow (S32 frame, const MatrixF &mat, S32 dim, U32 *bits, TSMaterialList *)
bool buildPolyList (S32 frame, AbstractPolyList *polyList, U32 &surfaceKey)
bool castRay (S32 frame, const Point3F &start, const Point3F &end, RayInfo *rayInfo)
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 ()

Data Fields

ToolVector< F32weight
 vectors that define the vertex, weight, bone tuples
ToolVector< S32boneIndex
ToolVector< S32vertexIndex
ToolVector< S32nodeIndex
 vectors indexed by bone number
ToolVector< MatrixFinitialTransforms
ToolVector< 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.
ToolVector< 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

Member Typedef Documentation


Constructor & Destructor Documentation

TSSkinMesh::TSSkinMesh (  )  [inline]


Member Function Documentation

void TSSkinMesh::updateSkin (  ) 

set verts and normals...

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

Reimplemented from TSMesh.

void TSSkinMesh::renderShadow ( S32  frame,
const MatrixF mat,
S32  dim,
U32 bits,
TSMaterialList  
) [virtual]

Reimplemented from TSMesh.

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

Reimplemented from TSMesh.

bool TSSkinMesh::castRay ( S32  frame,
const Point3F start,
const Point3F end,
RayInfo rayInfo 
) [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.


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




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen