j3d.org Code

org.j3d.loaders.discreet
Class MaterialData

java.lang.Object
  extended by org.j3d.loaders.discreet.MaterialData

public class MaterialData
extends java.lang.Object

A single set of material information for each triangle mesh.

Material works as a group that consists of a material name from the material library, and then a listing of the number of faces that the material belongs to.

The data represented is

     struct {
        short string material_name
        int numFaces
        int[] faceNumbers
     }
 

Version:
$Revision: 1.1 $
Author:
Justin Couch

Field Summary
 int[] faceList
          A listing of each face index this material belongs to
 java.lang.String materialName
          The name of the material to use from the material library
 int numFaces
          The number of faces this material node effects
 
Constructor Summary
MaterialData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

materialName

public java.lang.String materialName
The name of the material to use from the material library


numFaces

public int numFaces
The number of faces this material node effects


faceList

public int[] faceList
A listing of each face index this material belongs to

Constructor Detail

MaterialData

public MaterialData()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org