Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
G3D::Parse3DS::Object Class Reference

Public Member Functions

 Object ()
 

Public Attributes

Matrix4 cframe
 TRI_LOCAL chunk (transformed to G3D coordinates).
 
Array< FaceMatfaceMatArray
 Mapping of face indices to materials.
 
int hierarchyIndex
 From KFNAME.
 
Array< intindexArray
 Triangle list indices (loaded from the TRIFACE chunk)
 
Matrix4 keyframe
 The center of the local reference frame.
 
std::string name
 Part of the EDITOBJECT chunk.
 
int nodeID
 
Vector3 pivot
 Unused.
 
Array< Point2texCoordArray
 
Array< Point3vertexArray
 Loaded from the TRIVERTEX chunk (transformed to G3D coordinates).
 

Constructor & Destructor Documentation

G3D::Parse3DS::Object::Object ( )
inline

Member Data Documentation

Matrix4 G3D::Parse3DS::Object::cframe

TRI_LOCAL chunk (transformed to G3D coordinates).

In the file, this has already been applied to the vertices.

Array<FaceMat> G3D::Parse3DS::Object::faceMatArray

Mapping of face indices to materials.

int G3D::Parse3DS::Object::hierarchyIndex

From KFNAME.

The object hierarchy is a bit complex but works like this. Each Object in the scene is given a number to identify its order in the tree. Also each object is orddered in the 3ds file as it would appear in the tree. The root object is given the number -1 ( FFFF ). As the file is read a counter of the object number is kept. Is the counter increments the objects are children of the previous objects. But when the pattern is broken by a number what will be less than the current counter the hierarchy returns to that level.

Array<int> G3D::Parse3DS::Object::indexArray

Triangle list indices (loaded from the TRIFACE chunk)

Matrix4 G3D::Parse3DS::Object::keyframe

The center of the local reference frame.

std::string G3D::Parse3DS::Object::name

Part of the EDITOBJECT chunk.

int G3D::Parse3DS::Object::nodeID
Vector3 G3D::Parse3DS::Object::pivot

Unused.

Array<Point2> G3D::Parse3DS::Object::texCoordArray
Array<Point3> G3D::Parse3DS::Object::vertexArray

Loaded from the TRIVERTEX chunk (transformed to G3D coordinates).

In World Space.


documentation generated on Sat Jan 12 2013 22:49:56 using doxygen 1.8.2