Class Surface
java.lang.Object
|
+----Surface
- public class Surface
- extends Object
A class representing a surface.
-
Surface()
- Construct a surface containing no faces.
-
Surface(Vector)
- Construct a surface given a list of faces.
-
getFaces()
- Get the faces of a surfaces.
-
getVertices()
- Get the vertices of a surface.
-
setFaces(Vector)
- Set the faces of a surfaces.
-
toString()
- Returns a string describing a surface.
-
writeOFF(PrintWriter)
- Write an OFF file that describes a surface.
Surface
public Surface()
- Construct a surface containing no faces.
Surface
public Surface(Vector f)
- Construct a surface given a list of faces.
- Parameters:
- f - the list of faces
getFaces
public Vector getFaces()
- Get the faces of a surfaces.
- Returns:
- The vector of polygons that make up the surface.
setFaces
public void setFaces(Vector f)
- Set the faces of a surfaces.
getVertices
public Vector getVertices()
- Get the vertices of a surface.
- Returns:
- The vector of vertices that make up a surface.
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
toString
public String toString()
- Returns a string describing a surface.
- Overrides:
- toString in class Object