ProGAL.geom3d.surface
Class ParametricSurface

java.lang.Object
  extended by ProGAL.geom3d.surface.ParametricSurface
All Implemented Interfaces:
Shape
Direct Known Subclasses:
CoilSurface, HelixSurface, ParametricParaboloid, ParametricPlane, StrandSurface

public abstract class ParametricSurface
extends java.lang.Object
implements Shape


Constructor Summary
ParametricSurface()
           
 
Method Summary
abstract  ParametricSurface clone()
           
 Point getCenter()
          Get the geometric center of the shape.
 Vector getNormal(double u, double v)
           
 Vector getNormal(Point p)
           
abstract  Point getPoint(double u, double v)
           
 Point getPoint(Point p)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametricSurface

public ParametricSurface()
Method Detail

getPoint

public abstract Point getPoint(double u,
                               double v)

getPoint

public Point getPoint(Point p)

getNormal

public Vector getNormal(double u,
                        double v)

getNormal

public Vector getNormal(Point p)

getCenter

public Point getCenter()
Description copied from interface: Shape
Get the geometric center of the shape. The center of a shape can be interpreted in many ways (center of mass, circumcenter, inscribed center etc.). No strict requirement is given here, but typically the circumcenter should be supplied. This method is most prominently used to find the average center-position of a collection of shapes such that scene-viewers can be centered on the scene.

Specified by:
getCenter in interface Shape

clone

public abstract ParametricSurface clone()
Overrides:
clone in class java.lang.Object