marchingcubes
Class MCVertex

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

public class MCVertex
extends java.lang.Object


Field Summary
static int DEFAULT_WEIGHT
           
protected  marchingcubes.MCVector3 position
           
static int SIZE
           
protected  marchingcubes.MCInt weight
           
 
Constructor Summary
MCVertex(marchingcubes.MCVector3 position)
          contructor of a MCVertex object
MCVertex(marchingcubes.MCVector3 position, int weight)
          contructor of MCVertex object
 
Method Summary
 void display()
          draw the vertex into a specified graphics
 int weight()
          returns the weight of the vertex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WEIGHT

public static int DEFAULT_WEIGHT

SIZE

public static int SIZE

weight

protected marchingcubes.MCInt weight

position

protected marchingcubes.MCVector3 position
Constructor Detail

MCVertex

public MCVertex(marchingcubes.MCVector3 position)
contructor of a MCVertex object

Parameters:
position - position of the vertex in the 3D space

MCVertex

public MCVertex(marchingcubes.MCVector3 position,
                int weight)
contructor of MCVertex object

Parameters:
position - position of the vertex in the 3D space
weight - weight of the vertex (value of the function at this point)
Method Detail

weight

public int weight()
returns the weight of the vertex

Returns:
the weight of the vertex

display

public void display()
draw the vertex into a specified graphics