unlekker.geom
Class FaceList

java.lang.Object
  extended by unlekker.geom.FaceList

public class FaceList
extends java.lang.Object

A group of polygon faces constituting a single object.

Author:
Marius Watz

Field Summary
 BBox bb
          Bounding box
 Face[] f
          Array of STLFace objects comprising the current geometry.
 int num
          Current number of polygons
 
Constructor Summary
FaceList()
           
FaceList(int _numinit)
           
 
Method Summary
 void addFace(Face face)
           
 void calcBounds()
          Calculates the bounding box of the object.
 void center()
          Centers the object around the world origin.
 void draw(processing.core.PApplet p)
          Draws the object.
 void normalize(float m)
          Normalizes the object to an absolute radius.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num

public int num
Current number of polygons


f

public Face[] f
Array of STLFace objects comprising the current geometry.


bb

public BBox bb
Bounding box

Constructor Detail

FaceList

public FaceList()

FaceList

public FaceList(int _numinit)
Method Detail

addFace

public void addFace(Face face)

draw

public void draw(processing.core.PApplet p)
Draws the object.


calcBounds

public void calcBounds()
Calculates the bounding box of the object.


center

public void center()
Centers the object around the world origin.


normalize

public void normalize(float m)
Normalizes the object to an absolute radius.