edu.stanford.rsl.konrad.geometry
Class AbstractSurface

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.AbstractShape
      extended by edu.stanford.rsl.konrad.geometry.AbstractSurface
All Implemented Interfaces:
Transformable, java.io.Serializable
Direct Known Subclasses:
Plane3D, SimpleSurface, SurfaceBSpline

public abstract class AbstractSurface
extends AbstractShape

Abstract class to model n dimensional surfaces.

Author:
akmaier
See Also:
Serialized Form

Constructor Summary
AbstractSurface()
           
 
Method Summary
abstract  PointND evaluate(double u, double v)
          Returns a point on the surface at position (u, v).
 PointND evaluate(PointND u)
          Returns the point on the shape at the internal position u.
 int getInternalDimension()
          returns the internal dimension of the shape, i.e.
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.AbstractShape
applyTransform, getDimension, getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin, getRasterPoints, intersect, isBounded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSurface

public AbstractSurface()
Method Detail

evaluate

public PointND evaluate(PointND u)
Description copied from class: AbstractShape
Returns the point on the shape at the internal position u. If the shape is a curve, u is of dimension 1, if the shape is a surface u is of dimension 2, etc.

Specified by:
evaluate in class AbstractShape
Parameters:
u - the point in the internal parameter dimension
Returns:
the point on the shape at the internal dimension

evaluate

public abstract PointND evaluate(double u,
                                 double v)
Returns a point on the surface at position (u, v). u, v in [0, 1];

Parameters:
u - the internal position in u dimension
v - the internal position in v dimension
Returns:
the surface point

getInternalDimension

public int getInternalDimension()
Description copied from class: AbstractShape
returns the internal dimension of the shape, i.e. 1 if it is a curve, 2 if it is a surface, etc.

Specified by:
getInternalDimension in class AbstractShape
Returns:
the internal dimension