NL3D::CMesh::CSkinWeight Struct Reference

#include <mesh.h>


Detailed Description

Skinning: A skin weight for a vertex. NB: if you don't use all matrix for this vertex, use at least the 0th matrix, and simply set 0 on Weights you don't use.

Definition at line 113 of file mesh.h.

Public Member Functions

 CSkinWeight ()
 ctor.

void serial (NLMISC::IStream &f) throw (NLMISC::EStream)

Data Fields

uint32 MatrixId [4]
 What matrix of the skeleton shape this vertex use.

float Weights [4]
 weight of this matrix (sum of 4 must be 1).


Constructor & Destructor Documentation

NL3D::CMesh::CSkinWeight::CSkinWeight  )  [inline]
 

ctor.

Definition at line 121 of file mesh.h.

References MatrixId, NL3D_MESH_SKINNING_MAX_MATRIX, uint, and Weights.

00122                 {
00123                         for(uint i=0;i<NL3D_MESH_SKINNING_MAX_MATRIX;i++)
00124                         {
00125                                 MatrixId[i]=0;
00126                                 Weights[i]=0;
00127                         }
00128                 }


Member Function Documentation

void NL3D::CMesh::CSkinWeight::serial NLMISC::IStream f  )  throw (NLMISC::EStream)
 

Definition at line 2221 of file mesh.cpp.

References NL3D_MESH_SKINNING_MAX_MATRIX.

02222 {
02223         for(int i=0;i<NL3D_MESH_SKINNING_MAX_MATRIX;++i)
02224         {
02225                 f.serial(MatrixId[i]);
02226                 f.serial(Weights[i]);
02227         }
02228 }


Field Documentation

uint32 NL3D::CMesh::CSkinWeight::MatrixId[ 4 ]
 

What matrix of the skeleton shape this vertex use.

Definition at line 116 of file mesh.h.

Referenced by NL3D::CMeshMRMGeom::applySkin(), NL3D::CLodCharacterBuilder::applySkin(), NL3D::CMeshGeom::CFaceTmp::buildBoneUse(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CMeshGeom::buildSkin(), NL3D::CMRMBuilder::collapseSkinWeight(), CSkinWeight(), NL3D::CMRMBuilder::normalizeSkinWeight(), and NL3D::CMRMMeshFinal::CWedge::operator<().

float NL3D::CMesh::CSkinWeight::Weights[ 4 ]
 

weight of this matrix (sum of 4 must be 1).

Definition at line 118 of file mesh.h.

Referenced by NL3D::CMeshMRMGeom::applySkin(), NL3D::CLodCharacterBuilder::applySkin(), NL3D::CMRMBuilder::buildFinalMRM(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CMeshGeom::buildSkin(), NL3D::CMRMBuilder::collapseSkinWeight(), CSkinWeight(), NL3D::CMRMBuilder::normalizeSkinWeight(), and NL3D::CMRMMeshFinal::CWedge::operator<().


The documentation for this struct was generated from the following files:
Generated on Tue Mar 16 06:51:04 2004 for NeL by doxygen 1.3.6