jme.geometry.model
Class Mesh

java.lang.Object
  extended byjme.geometry.model.Mesh

public class Mesh
extends java.lang.Object

A Mesh is a group of related triangles in MS3D.

Version:
0.1
Author:
naj

Field Summary
 int flags
          The flags in MS3D.
 int materialIndex
          The index into the array of materials in the model.
 java.lang.String name
          The name of the mesh in MS3D.
 float[][] normals
          The normals in the mesh.
 int numberNormals
          The number of normal vectors in the mesh.
 int numberTriangles
          The number of triangles in the mesh.
 int numberVertices
          The number of vertices in the mesh.
 Triangle[] triangles
          The traingles in the mesh.
 Vertex[] vertices
          The vertices in the mesh.
 
Constructor Summary
Mesh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of the mesh in MS3D.


flags

public int flags
The flags in MS3D.


materialIndex

public int materialIndex
The index into the array of materials in the model. -1 indicates that the mesh does not have a material assigned to it.


numberVertices

public int numberVertices
The number of vertices in the mesh.


numberNormals

public int numberNormals
The number of normal vectors in the mesh.


numberTriangles

public int numberTriangles
The number of triangles in the mesh.


vertices

public Vertex[] vertices
The vertices in the mesh.


normals

public float[][] normals
The normals in the mesh. Stores as an array of (x,y,z) arrays.


triangles

public Triangle[] triangles
The traingles in the mesh.

Constructor Detail

Mesh

public Mesh()