|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.ase.AseNode
org.jagatoo.loaders.models.ase.AseMesh
public class AseMesh
The ASE mesh object holds the information for a single mesh. It is parsed a little differently from other ASE nodes because I don't want to create seperate nodes for every vertex and UV mapping. So to be a little more efficient the geometry will be stored in big arrays. Arrays which can be used to populate a geometry array. An unfortunate storage difference makes ASE indexed format different than Java3d indexed format. The normals are stored separate from the vertex list. This means that for the same vertex, there could be several sets of normals, depending on what face they belong to.
| Field Summary | |
|---|---|
boolean |
convertMeshCoordinates
|
int[] |
faceMat
|
float[] |
faceNormals
|
int[] |
faceNormalsIndices
|
int[] |
faces
|
float[] |
normals
|
int[] |
normalsIndices
|
int |
numFaces
|
int |
numTexFaces
|
int |
numTexVertices
|
int |
numVertices
|
int[] |
texFaces
|
float[] |
texVertices
|
int[] |
totals
|
float[] |
vertices
|
| Fields inherited from class org.jagatoo.loaders.models.ase.AseNode |
|---|
debug, properties |
| Constructor Summary | |
|---|---|
AseMesh()
|
|
| Method Summary | |
|---|---|
void |
parse(AseReader in)
Override the default parse method because we are going to parse the entire mesh in thos node, rather than recusing into further node types. |
void |
parseFaceList(AseReader in)
Parses a mesh face list. |
void |
parseNormal(AseReader in,
int n)
Reads in a single normal and its face and put their into the normals and normalIndices arrays |
void |
parseNormalsList(AseReader in)
Parses a mesh normal list. |
void |
parseTexFaceList(AseReader in)
Parses a mesh tex face list. |
void |
parseTexVertexList(AseReader in)
Parses a texture vertex list. |
void |
parseVertexList(AseReader in)
Parses a mesh vertex list. |
| Methods inherited from class org.jagatoo.loaders.models.ase.AseNode |
|---|
parseProperty, trashBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int numVertices
public int numFaces
public int numTexVertices
public int numTexFaces
public float[] vertices
public int[] faces
public float[] texVertices
public int[] texFaces
public float[] normals
public int[] normalsIndices
public float[] faceNormals
public int[] faceNormalsIndices
public int[] faceMat
public int[] totals
public boolean convertMeshCoordinates
| Constructor Detail |
|---|
public AseMesh()
| Method Detail |
|---|
public void parseVertexList(AseReader in)
public void parseFaceList(AseReader in)
public void parseTexVertexList(AseReader in)
public void parseTexFaceList(AseReader in)
public void parseNormal(AseReader in,
int n)
public void parseNormalsList(AseReader in)
public void parse(AseReader in)
parse in class AseNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||