jglcore
Class JGL_3DMesh

java.lang.Object
  extended by jglcore.JGL_3DMesh

public final class JGL_3DMesh
extends java.lang.Object

Representation of a 3D basic mesh. Identified by an ID, it manages a list of faces and a list of points. These ones can be modified to transform the shape or the position of the mesh.

Author:
Nicolas Devere

Constructor Summary
JGL_3DMesh()
          Constructs an empty mesh.
JGL_3DMesh(java.lang.String _id)
          Constructs an empty mesh given an ID.
 
Method Summary
 void addFace(JGL_3DTriangle face)
          Adds a face to the mesh.
 void clear()
          Removes all the faces and points from the mesh.
 void display()
          Displays The mesh.
 java.util.Vector getFaces()
          Returns the faces list in the mesh.
 java.lang.String getID()
          Returns the mesh ID .
 java.util.Vector getPoints()
          Returns the points list in the mesh.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGL_3DMesh

public JGL_3DMesh()
Constructs an empty mesh.


JGL_3DMesh

public JGL_3DMesh(java.lang.String _id)
Constructs an empty mesh given an ID.

Parameters:
_id - : the mesh ID
Method Detail

addFace

public void addFace(JGL_3DTriangle face)
Adds a face to the mesh.

Parameters:
face - : the face to add

getID

public java.lang.String getID()
Returns the mesh ID .

Returns:
the mesh ID

getFaces

public java.util.Vector getFaces()
Returns the faces list in the mesh.

Returns:
Vector

getPoints

public java.util.Vector getPoints()
Returns the points list in the mesh.

Returns:
Vector

clear

public void clear()
Removes all the faces and points from the mesh.


display

public void display()
Displays The mesh.