marchingcubes
Class MCMesh

java.lang.Object
  |
  +--marchingcubes.MCMesh

public class MCMesh
extends java.lang.Object


Field Summary
protected  marchingcubes.MCMatrix4 modelView
           
 
Constructor Summary
MCMesh()
          default constructor of a MCMesh object
 
Method Summary
 void addCube(marchingcubes.MCCube _cube, int position, java.lang.String name)
          adds a new cube to the mesh
 marchingcubes.MCVector3 computeCenter()
          computes the center of the mesh
 void deleteCube(marchingcubes.MCCube cube)
          deletes a cube from the mesh
 void display()
          draws the mesh
 java.util.Vector getCubes()
          returns the cubes of the mesh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelView

protected marchingcubes.MCMatrix4 modelView
Constructor Detail

MCMesh

public MCMesh()
default constructor of a MCMesh object

Method Detail

addCube

public void addCube(marchingcubes.MCCube _cube,
                    int position,
                    java.lang.String name)
adds a new cube to the mesh

Parameters:
_cube - the cube of the mesh next to which a new cube should be added
position - the position of the new cube in comparison with _cube
name - identifier of the new cube

deleteCube

public void deleteCube(marchingcubes.MCCube cube)
deletes a cube from the mesh

Parameters:
cube - the cube of the mesh to delete

computeCenter

public marchingcubes.MCVector3 computeCenter()
computes the center of the mesh

Returns:
the center of the mesh

getCubes

public java.util.Vector getCubes()
returns the cubes of the mesh

Returns:
the vector containing all the cubes

display

public void display()
draws the mesh