Class Surface

java.lang.Object
   |
   +----Surface

public class Surface
extends Object
A class representing a surface.


Constructor Index

 o Surface()
Construct a surface containing no faces.
 o Surface(Vector)
Construct a surface given a list of faces.

Method Index

 o getFaces()
Get the faces of a surfaces.
 o getVertices()
Get the vertices of a surface.
 o setFaces(Vector)
Set the faces of a surfaces.
 o toString()
Returns a string describing a surface.
 o writeOFF(PrintWriter)
Write an OFF file that describes a surface.

Constructors

 o Surface
 public Surface()
Construct a surface containing no faces.

 o Surface
 public Surface(Vector f)
Construct a surface given a list of faces.

Parameters:
f - the list of faces

Methods

 o getFaces
 public Vector getFaces()
Get the faces of a surfaces.

Returns:
The vector of polygons that make up the surface.
 o setFaces
 public void setFaces(Vector f)
Set the faces of a surfaces.

 o getVertices
 public Vector getVertices()
Get the vertices of a surface.

Returns:
The vector of vertices that make up a surface.
 o writeOFF
 public void writeOFF(PrintWriter pw) throws IOException
Write an OFF file that describes a surface. OFF files can be viewed using Geomview http://www.geom.umn.edu/software/download/geomview.html

Parameters:
pw - A PrintWriter for the file
 o toString
 public String toString()
Returns a string describing a surface.

Overrides:
toString in class Object