|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--marchingcubes.MCCube
| Field Summary | |
protected boolean |
amb
|
protected static int[] |
ambigous
|
static double |
DEFAULT_SEEK_VALUE
|
protected marchingcubes.MCVector3[] |
e
|
protected boolean |
hidden
|
protected java.lang.String |
id
|
protected marchingcubes.MCMatrix4 |
modelView
|
protected java.util.Vector |
neighbours
|
protected static double |
seekValue
|
static double |
SIZE
|
protected marchingcubes.MCVertex[] |
v
|
| Constructor Summary | |
MCCube(java.lang.String id)
contructor of a MCCube object |
|
MCCube(java.lang.String id,
marchingcubes.MCVertex[] v)
constructor of a MCCube object |
|
MCCube(java.lang.String id,
marchingcubes.MCVertex v0,
marchingcubes.MCVertex v1,
marchingcubes.MCVertex v2,
marchingcubes.MCVertex v3,
marchingcubes.MCVertex v4,
marchingcubes.MCVertex v5,
marchingcubes.MCVertex v6,
marchingcubes.MCVertex v7)
constructor of a MCCube object |
|
| Method Summary | |
int |
caseNumber()
computes the case number of the cube |
void |
computeEdges()
computes interpolated values along each edge of the cube (null if interpolated value doesn't belong to the edge) |
void |
display()
performs all display operations depending on rendering parameters |
static boolean |
isAmbigous(int n)
indicates if a number corresponds to an ambigous case |
java.lang.String |
toString()
returns a string representation of the cube (its name) (useful to add cubes to combo-boxes) |
static marchingcubes.MCVector3 |
translate(int position)
returns the translation corresponding to a neighbour at a specified position (north/south: along z axis, etc.) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final double SIZE
public static final double DEFAULT_SEEK_VALUE
protected static double seekValue
protected java.util.Vector neighbours
protected marchingcubes.MCVertex[] v
protected marchingcubes.MCVector3[] e
protected marchingcubes.MCMatrix4 modelView
protected java.lang.String id
protected boolean hidden
protected boolean amb
protected static int[] ambigous
| Constructor Detail |
public MCCube(java.lang.String id)
id - identifier of the cube
public MCCube(java.lang.String id,
marchingcubes.MCVertex v0,
marchingcubes.MCVertex v1,
marchingcubes.MCVertex v2,
marchingcubes.MCVertex v3,
marchingcubes.MCVertex v4,
marchingcubes.MCVertex v5,
marchingcubes.MCVertex v6,
marchingcubes.MCVertex v7)
id - identifier of the cubev0 - first vertexv1 - second vertexv2 - third vertexv3 - fourth vertexv4 - fifth vertexv5 - sixth vertexv6 - seventh vertexv7 - eighth vertex
public MCCube(java.lang.String id,
marchingcubes.MCVertex[] v)
id - identifier of the cubev - array containing the vertexes| Method Detail |
public static boolean isAmbigous(int n)
n - number of the case to test
public int caseNumber()
public static marchingcubes.MCVector3 translate(int position)
position - a direction
public void computeEdges()
public void display()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||