|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.loaders.discreet.TriangleMesh
public class TriangleMesh
Representation of a single triangle mesh.
A triangle mesh consists of vertices, face sets connecting the vertices, and a single set of 2D texture coordinates (multitexture not supported by the .3ds format). Tangent and binormals are calculated on the fly from the provided information. The file definition of this chunk is:
TRIANGULAR MESH 0x4100 VERTICES LIST 0x4110 FACES DESCRIPTION 0x4120 FACES MATERIAL 0x4130 MAPPING COORDINATES LIST 0x4140 SMOOTHING GROUP LIST 0x4150 LOCAL COORDINATES SYSTEM 0x4160
Field Summary | |
---|---|
float[] |
binormals
Listing of binormals for each vertex |
java.lang.String[] |
boxMapMaterials
Names of the materials used for a cubic environment map. |
int[] |
faces
Index lists for each face |
float[] |
localCoords
Local coordinate system reference (a 4x3 matrix) |
MaterialData[] |
materials
Listing of the material groups needed |
float[] |
normals
Listing of normals for each vertex |
int |
numFaces
Total number of valid faces. |
int |
numMaterials
Number of valid material groups available |
int |
numTexCoords
The number of texture coordinates |
int |
numVertices
The number of valid vertices in this mesh |
int[] |
smoothgroups
Index lists for the groups of faces that should be smooth shaded |
float[] |
tangents
Listing of tangents for each vertex |
float[] |
texCoords
2D texture coordinates for this object |
float[] |
vertices
Vertex coordinates, flat style |
Constructor Summary | |
---|---|
TriangleMesh()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float[] vertices
public int numVertices
public float[] texCoords
public int numTexCoords
public int[] faces
public int numFaces
public int[] smoothgroups
public float[] normals
public float[] tangents
public float[] binormals
public float[] localCoords
public MaterialData[] materials
public int numMaterials
public java.lang.String[] boxMapMaterials
Constructor Detail |
---|
public TriangleMesh()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |