vclip
Class Face

java.lang.Object
  extended byvclip.Feature
      extended byvclip.Face

public class Face
extends Feature

A face of a polyhedron.

Author:
Brian Mirtich (C++ version), Eddy Boxerman, John E. Lloyd (Java port)
See Also:
Copyright information

Nested Class Summary
 class Face.EdgeIterator
           
 class Face.VertexIterator
           
 
Field Summary
 
Fields inherited from class vclip.Feature
EDGE, FACE, VERTEX
 
Method Summary
 Face.EdgeIterator getEdges()
          Gets an iterator which gives the edges of this face in counter-clockwise order.
 Plane getPlane()
          Gets the plane associated with this face.
 Face.VertexIterator getVertices()
          Gets an iterator which gives the vertices of this face (each as a Point3d) in counter-clockwise order.
 java.lang.String toString()
          Produces a string representation of this face.
 
Methods inherited from class vclip.Feature
getName, getType, isHidden, promote, setHidden, typeName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPlane

public Plane getPlane()
Gets the plane associated with this face.

Returns:
plane of the face

getEdges

public Face.EdgeIterator getEdges()
Gets an iterator which gives the edges of this face in counter-clockwise order.

Returns:
face edge iterator

getVertices

public Face.VertexIterator getVertices()
Gets an iterator which gives the vertices of this face (each as a Point3d) in counter-clockwise order.

Returns:
vertex iterator

toString

public final java.lang.String toString()
Produces a string representation of this face.

Returns:
string representation