FBMesh Class Reference

#include <fbmodel.h>
FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh FBMesh
Inheritance diagram for FBMesh:
Inheritance graph
[legend]

List of all members.


Detailed Description

Mesh class.

Definition at line 2054 of file fbmodel.h.


Public Member Functions

  FBMesh (char *pName, HIObject pObject=NULL)
  Constructor.
int  PolygonBegin ()
  Begin Polygon definition.
bool  PolygonVertexAdd (int pVertex)
  Add a vertex.
int  PolygonMaterialIdGet (int pIndex=-1)
  Get a Material ID.
int  PolygonEnd ()
  End Polygon definition.
int  PolygonVertexCount (int pPolygonIndex)
  Get Polygon vertex count.
int  PolygonVertexIndex (int pPolygonIndex, int pVertexPolygonIndex)
  Get global (for the mesh) index of a vertex from a polygon.
int  PolygonCount ()
  Get number of polygons in mesh.
void  ComputeVertexNormals (bool pCW=false)
  Compute Mesh Vertex Normal.
void  InverseNormal ()
  Inverse Normal.

Constructor & Destructor Documentation

FBMesh ( char *  pName,
HIObject  pObject = NULL  
)

Constructor.

Parameters:
pName  Name of Mesh.
pObject  For internal use only(default=NULL).

Member Function Documentation

int PolygonBegin (  ) 

Begin Polygon definition.

Returns:
Number of existing polygons in Mesh

bool PolygonVertexAdd ( int  pVertex  ) 

Add a vertex.

Parameters:
pVertex  Index in mesh of vertex to add to polygon
Returns:
true if successful.

int PolygonMaterialIdGet ( int  pIndex = -1  ) 

Get a Material ID.

Parameters:
pIndex  Vertex to get material ID at(default=-1).
Returns:
ID of material of vertex at pIndex.

int PolygonEnd (  ) 

End Polygon definition.

Clean up and associate vertices internally.

Returns:
Current number of polygons.

int PolygonVertexCount ( int  pPolygonIndex  ) 

Get Polygon vertex count.

Parameters:
pPolygonIndex  Index of polygon to get vertex count from.
Returns:
Number of vertices in polygon at pPolygonIndex.

int PolygonVertexIndex ( int  pPolygonIndex,
int  pVertexPolygonIndex  
)

Get global (for the mesh) index of a vertex from a polygon.

Parameters:
pPolygonIndex  Index of polygon in question.
pVertexPolygonIndex  Polygon vertex index.
Returns:
Index in mesh of vertex.

int PolygonCount (  ) 

Get number of polygons in mesh.

Returns:
Number of polygons in mesh.

void ComputeVertexNormals ( bool  pCW = false  ) 

Compute Mesh Vertex Normal.

Parameters:
pCW  True for clock wise normal, otherwise for counter-clock wise

void InverseNormal (  ) 

Inverse Normal.


Please send us your comments about this page.