# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CLodCharacterShapeBuild Class Reference

A build structure information for building a CLodCharacterShape This is the structure exported from the 3D editor. More...

#include <lod_character_shape.h>

List of all members.

Public Methods

 CLodCharacterShapeBuild ()
void compile (const std::vector< bool > &triangleSelection, uint textureOverSample=25)
 compile the lod: compute Texture Information. More...

void serial (NLMISC::IStream &f)
 serial. More...

const CPixelInfogetTextureInfoPtr ()
 get TextureInfo. More...

uint getTextureInfoWidth () const
uint getTextureInfoHeight () const

Public Attributes

std::vector< CVector > Vertices
std::vector< CMesh::CSkinWeightSkinWeights
std::vector< CUV > UVs
std::vector< CVector > Normals
std::vector< std::string > BonesNames
std::vector< uint32TriangleIndices

Private Attributes

std::vector< CPixelInfo_TextureInfo
uint32 _Width
uint32 _Height


Detailed Description

A build structure information for building a CLodCharacterShape This is the structure exported from the 3D editor.

Author:
Lionel Berenguier , Nevrax France
Date:
2002

Definition at line 46 of file lod_character_shape.h.


Constructor & Destructor Documentation

NL3D::CLodCharacterShapeBuild::CLodCharacterShapeBuild  
 

Definition at line 57 of file lod_character_shape.cpp.

References _Height, and _Width.


Member Function Documentation

void NL3D::CLodCharacterShapeBuild::compile const std::vector< bool > &    triangleSelection,
uint    textureOverSample = 25
 

compile the lod: compute Texture Information.

Parameters:
triangleSelection.  If not same size as triangles, not used. Else texture info is filled only with triangles whose their triangleSelection[triId]==true
textureOverSample  is rounded to the best square (4,9,...). Prefer a srq(oddVal): 1,9,25,49 etc... NB: overSamples are not averaged, but the nearest sample to the texel center is taken.

Definition at line 65 of file lod_character_shape.cpp.

References _Height, _TextureInfo, _Width, min, NL3D_CLOD_TEXT_HEIGHT, NL3D_CLOD_TEXT_WIDTH, nlassert, Normals, NLMISC::sqr, TriangleIndices, UVs, v, Vertices, x, and y.

uint NL3D::CLodCharacterShapeBuild::getTextureInfoHeight   const [inline]
 

Definition at line 111 of file lod_character_shape.h.

References _Height.

const CLodCharacterShapeBuild::CPixelInfo * NL3D::CLodCharacterShapeBuild::getTextureInfoPtr  
 

get TextureInfo.

Definition at line 312 of file lod_character_shape.cpp.

References _TextureInfo.

uint NL3D::CLodCharacterShapeBuild::getTextureInfoWidth   const [inline]
 

Definition at line 110 of file lod_character_shape.h.

References _Width.

void NL3D::CLodCharacterShapeBuild::serial NLMISC::IStream   f
 

serial.

Definition at line 272 of file lod_character_shape.cpp.

References _Height, _TextureInfo, _Width, BonesNames, NL3D_CLOD_TEXT_HEIGHT, NL3D_CLOD_TEXT_WIDTH, Normals, NLMISC::IStream::serial, NLMISC::IStream::serialCheck, NLMISC::IStream::serialCont, NLMISC::IStream::serialVersion, SkinWeights, TriangleIndices, UVs, and Vertices.


Member Data Documentation

uint32 NL3D::CLodCharacterShapeBuild::_Height [private]
 

Definition at line 117 of file lod_character_shape.h.

Referenced by CLodCharacterShapeBuild, compile, getTextureInfoHeight, and serial.

std::vector<CPixelInfo> NL3D::CLodCharacterShapeBuild::_TextureInfo [private]
 

Definition at line 116 of file lod_character_shape.h.

Referenced by compile, getTextureInfoPtr, and serial.

uint32 NL3D::CLodCharacterShapeBuild::_Width [private]
 

Definition at line 117 of file lod_character_shape.h.

Referenced by CLodCharacterShapeBuild, compile, getTextureInfoWidth, and serial.

std::vector<std::string> NL3D::CLodCharacterShapeBuild::BonesNames
 

Definition at line 89 of file lod_character_shape.h.

Referenced by serial.

std::vector<CVector> NL3D::CLodCharacterShapeBuild::Normals
 

Definition at line 86 of file lod_character_shape.h.

Referenced by compile, and serial.

std::vector<CMesh::CSkinWeight> NL3D::CLodCharacterShapeBuild::SkinWeights
 

Definition at line 80 of file lod_character_shape.h.

Referenced by serial.

std::vector<uint32> NL3D::CLodCharacterShapeBuild::TriangleIndices
 

Definition at line 92 of file lod_character_shape.h.

Referenced by compile, and serial.

std::vector<CUV> NL3D::CLodCharacterShapeBuild::UVs
 

Definition at line 83 of file lod_character_shape.h.

Referenced by compile, and serial.

std::vector<CVector> NL3D::CLodCharacterShapeBuild::Vertices
 

Definition at line 77 of file lod_character_shape.h.

Referenced by compile, and serial.


The documentation for this class was generated from the following files: