cct.math.polyg
Class Polygonizer

java.lang.Object
  extended by cct.math.polyg.Polygonizer
Direct Known Subclasses:
j3dPolygonizer

public class Polygonizer
extends java.lang.Object

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private) static float[][] a2fEdgeDirection
           
(package private) static float[][] a2fVertexOffset
           
(package private) static int[][] a2iEdgeConnection
           
(package private) static int[][] a2iTetrahedronEdgeConnection
           
(package private) static int[][] a2iTetrahedronsInACube
           
(package private)  int[][] a2iTetrahedronTriangles
           
(package private) static int[][] a2iTriangleConnectionTable
           
(package private) static int[] aiCubeEdgeFlags
           
(package private)  int[] aiTetrahedronEdgeFlags
           
protected  float[] dataOrigin
           
protected  float fStepSize
           
protected  float fTargetValue
           
protected  ImplicitFunctionInterface function
           
protected  int[] iDataSetSize
           
protected  java.util.ArrayList Normals
           
protected  java.util.ArrayList Triangles
           
protected  java.util.ArrayList Vertices
           
 
Constructor Summary
Polygonizer()
           
Polygonizer(float[] origin, int[] dataSetSize, float stepSize, float isovalue, ImplicitFunctionInterface fun)
           
 
Method Summary
 void dispose()
           
(package private)  float fGetOffset(float fValue1, float fValue2, float fValueDesired)
           
(package private)  void getNormal(GLvector rfNormal, float fX, float fY, float fZ)
           
 java.util.ArrayList getNormals()
           
 java.util.ArrayList getVertices()
           
static void main(java.lang.String[] args)
           
(package private)  void marchCube(float fX, float fY, float fZ, float fScale)
           
(package private)  void marchCube2(cct.math.polyg.Polygonizer.Cube cube, float fX, float fY, float fZ, float fScale)
           
 void marchingCubes()
           
 void marchingCubes2()
           
 void marchingTetrahedrons()
           
(package private)  void marchTetrahedron(GLvector[] pasTetrahedronPosition, float[] pafTetrahedronValue)
           
 void marchTetrahedrons(float fX, float fY, float fZ, float fScale)
           
(package private)  void normalizeVector(GLvector rfVectorResult, GLvector rfVectorSource)
           
 int noTriangles()
           
(package private)  void setupCube(cct.math.polyg.Polygonizer.Cube[][] slab_0, cct.math.polyg.Polygonizer.Cube[][] slab_1, int iX, int iY, int iZ)
           
(package private)  void setupEdge(cct.math.polyg.Polygonizer.Cube cube, int iEdge)
           
(package private)  void setupEdge(cct.math.polyg.Polygonizer.Cube cube, int iEdge, cct.math.polyg.Polygonizer.Cube cube_2, int iEdge_2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aiCubeEdgeFlags

static final int[] aiCubeEdgeFlags

a2iTriangleConnectionTable

static final int[][] a2iTriangleConnectionTable

a2fVertexOffset

static final float[][] a2fVertexOffset

a2iEdgeConnection

static final int[][] a2iEdgeConnection

a2fEdgeDirection

static final float[][] a2fEdgeDirection

a2iTetrahedronEdgeConnection

static final int[][] a2iTetrahedronEdgeConnection

a2iTetrahedronsInACube

static final int[][] a2iTetrahedronsInACube

aiTetrahedronEdgeFlags

int[] aiTetrahedronEdgeFlags

a2iTetrahedronTriangles

int[][] a2iTetrahedronTriangles

iDataSetSize

protected int[] iDataSetSize

dataOrigin

protected float[] dataOrigin

fStepSize

protected float fStepSize

fTargetValue

protected float fTargetValue

function

protected ImplicitFunctionInterface function

Normals

protected java.util.ArrayList Normals

Vertices

protected java.util.ArrayList Vertices

Triangles

protected java.util.ArrayList Triangles
Constructor Detail

Polygonizer

public Polygonizer()

Polygonizer

public Polygonizer(float[] origin,
                   int[] dataSetSize,
                   float stepSize,
                   float isovalue,
                   ImplicitFunctionInterface fun)
Method Detail

noTriangles

public int noTriangles()

getVertices

public java.util.ArrayList getVertices()

getNormals

public java.util.ArrayList getNormals()

main

public static void main(java.lang.String[] args)

marchingCubes

public void marchingCubes()

marchingTetrahedrons

public void marchingTetrahedrons()

marchCube

void marchCube(float fX,
               float fY,
               float fZ,
               float fScale)

marchingCubes2

public void marchingCubes2()

setupCube

void setupCube(cct.math.polyg.Polygonizer.Cube[][] slab_0,
               cct.math.polyg.Polygonizer.Cube[][] slab_1,
               int iX,
               int iY,
               int iZ)

setupEdge

void setupEdge(cct.math.polyg.Polygonizer.Cube cube,
               int iEdge)

setupEdge

void setupEdge(cct.math.polyg.Polygonizer.Cube cube,
               int iEdge,
               cct.math.polyg.Polygonizer.Cube cube_2,
               int iEdge_2)

marchCube2

void marchCube2(cct.math.polyg.Polygonizer.Cube cube,
                float fX,
                float fY,
                float fZ,
                float fScale)

getNormal

void getNormal(GLvector rfNormal,
               float fX,
               float fY,
               float fZ)

normalizeVector

void normalizeVector(GLvector rfVectorResult,
                     GLvector rfVectorSource)

fGetOffset

float fGetOffset(float fValue1,
                 float fValue2,
                 float fValueDesired)

marchTetrahedrons

public void marchTetrahedrons(float fX,
                              float fY,
                              float fZ,
                              float fScale)

marchTetrahedron

void marchTetrahedron(GLvector[] pasTetrahedronPosition,
                      float[] pafTetrahedronValue)

dispose

public void dispose()