marchingcubes
Class MCVertex
java.lang.Object
|
+--marchingcubes.MCVertex
- public class MCVertex
- extends java.lang.Object
|
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 |
DEFAULT_WEIGHT
public static int DEFAULT_WEIGHT
SIZE
public static int SIZE
weight
protected marchingcubes.MCInt weight
position
protected marchingcubes.MCVector3 position
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 spaceweight - weight of the vertex (value of the function at this point)
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