uk.ac.ed.computational_geometry.algorithm.marching_cubes
Class Cube

java.lang.Object
  extended by uk.ac.ed.computational_geometry.algorithm.marching_cubes.Cube

public class Cube
extends Object

User: nix Date: 11-Aug-2005 Time: 14:57:50 To change this template use Options | File Templates.


Nested Class Summary
static class Cube.Edge
           
static class Cube.Face
           
static class Cube.Type
           
static class Cube.Vertex
           
 
Field Summary
protected  int index_x
           
protected  int index_y
           
protected  int index_z
           
protected  EnumMap<Cube.Vertex,Boolean> insides
           
protected  MarchingCubes marching_cubes
           
protected  Cube.Type type
           
protected  EnumMap<Cube.Vertex,javax.vecmath.Point3d> vertexes
           
protected  boolean visited
           
 
Constructor Summary
Cube(MarchingCubes marching_cubes, int index_x, int index_y, int index_z)
           
 
Method Summary
protected  Cube.Type calculateType()
           
 Cube getAdjacentCube(Cube.Face face)
           
 javax.vecmath.Point3d getCentrePoint(Cube.Edge edge)
           
 javax.vecmath.Point3d getPoint(Cube.Vertex vertex)
           
 Cube.Type getType()
           
 boolean isInside(Cube.Vertex vertex)
           
 boolean isInsideSurface()
           
 boolean isOnSurface()
           
 boolean isOutsideSurface()
           
 boolean isVisited()
           
 void setVisited(boolean visited)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected Cube.Type type

index_x

protected int index_x

index_y

protected int index_y

index_z

protected int index_z

vertexes

protected EnumMap<Cube.Vertex,javax.vecmath.Point3d> vertexes

insides

protected EnumMap<Cube.Vertex,Boolean> insides

marching_cubes

protected MarchingCubes marching_cubes

visited

protected boolean visited
Constructor Detail

Cube

public Cube(MarchingCubes marching_cubes,
            int index_x,
            int index_y,
            int index_z)
Method Detail

isOnSurface

public boolean isOnSurface()

isInsideSurface

public boolean isInsideSurface()

isOutsideSurface

public boolean isOutsideSurface()

isVisited

public boolean isVisited()

setVisited

public void setVisited(boolean visited)

toString

public String toString()
Overrides:
toString in class Object

getPoint

public javax.vecmath.Point3d getPoint(Cube.Vertex vertex)

getCentrePoint

public javax.vecmath.Point3d getCentrePoint(Cube.Edge edge)

isInside

public boolean isInside(Cube.Vertex vertex)

getAdjacentCube

public Cube getAdjacentCube(Cube.Face face)

getType

public Cube.Type getType()

calculateType

protected Cube.Type calculateType()