Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.attractor
Class FaceGenerator  view FaceGenerator download FaceGenerator.java

java.lang.Object
  extended bycom.trapezium.attractor.FaceGenerator

public class FaceGenerator
extends java.lang.Object

The FaceGenerator generates a set of triangles based on a face from the original attractor and its dual. The triangles are two points from the attractor face edge, and the one dual point in the middle of the attractor face.

Since:
1.0
Version:
1.0, 8 Oct 1998

Field Summary
(package private)  int dualMatch
           
(package private)  int[] face
           
(package private)  com.trapezium.space.SpaceEntitySet faces
           
(package private)  CoordAttractor nearCoords
           
(package private)  int numberFaces
           
 
Constructor Summary
FaceGenerator(com.trapezium.space.SpaceEntitySet faces, CoordAttractor nearCoords)
          Class constructor.
 
Method Summary
 boolean getFace(int faceOffset, int[] faceIndex)
          Get the floater offset values of a particular generated face.
 int getNumberFaces()
          Get the number of faces this will generate
 void loadFaceSet(int[] faceInts, int dualMatch)
          Almost a class constructor, FaceGenEnumerator optimization is to set values rather than re-create a FaceGenerator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

faces

com.trapezium.space.SpaceEntitySet faces

nearCoords

CoordAttractor nearCoords

numberFaces

int numberFaces

dualMatch

int dualMatch

face

int[] face
Constructor Detail

FaceGenerator

public FaceGenerator(com.trapezium.space.SpaceEntitySet faces,
                     CoordAttractor nearCoords)
Class constructor.

Method Detail

loadFaceSet

public void loadFaceSet(int[] faceInts,
                        int dualMatch)
Almost a class constructor, FaceGenEnumerator optimization is to set values rather than re-create a FaceGenerator. This method accepts those values.


getNumberFaces

public int getNumberFaces()
Get the number of faces this will generate


getFace

public boolean getFace(int faceOffset,
                       int[] faceIndex)
Get the floater offset values of a particular generated face.