Support Forum       G3D Web Page     
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). More...
 
Array< FaceMatfaceMatArray
 Mapping of face indices to materials. More...
 
int hierarchyIndex
 From KFNAME. More...
 
Array< int > indexArray
 Triangle list indices (loaded from the TRIFACE chunk) More...
 
Matrix4 keyframe
 The center of the local reference frame. More...
 
String name
 Part of the EDITOBJECT chunk. More...
 
int nodeID
 
Vector3 pivot
 Unused. More...
 
Array< Point2texCoordArray
 
Array< Point3vertexArray
 Loaded from the TRIVERTEX chunk (transformed to G3D coordinates). More...
 

Constructor & Destructor Documentation

◆ Object()

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

Member Data Documentation

◆ cframe

Matrix4 G3D::Parse3DS::Object::cframe

TRI_LOCAL chunk (transformed to G3D coordinates).

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

◆ faceMatArray

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

Mapping of face indices to materials.

◆ hierarchyIndex

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.

◆ indexArray

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

Triangle list indices (loaded from the TRIFACE chunk)

◆ keyframe

Matrix4 G3D::Parse3DS::Object::keyframe

The center of the local reference frame.

◆ name

String G3D::Parse3DS::Object::name

Part of the EDITOBJECT chunk.

◆ nodeID

int G3D::Parse3DS::Object::nodeID

◆ pivot

Vector3 G3D::Parse3DS::Object::pivot

Unused.

◆ texCoordArray

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

◆ vertexArray

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

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

In World Space.


documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15