|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.geometry.AbstractShape
edu.stanford.rsl.konrad.geometry.AbstractSurface
edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface
edu.stanford.rsl.konrad.geometry.shapes.ArbitrarySurface
public class ArbitrarySurface
Models an arbitrary shape centered at the origin using a base shape and bounding conditions An affine transform class is used to translate and orient shapes from object space in world space The affine transform of an arbitrary shape is always the same as that of its base shape;
Constructor Summary | |
---|---|
ArbitrarySurface(SimpleSurface baseSurface,
java.util.Collection<? extends AbstractBoundingCondition> clipSurfaces)
|
Method Summary | |
---|---|
void |
applyTransform(Transform t)
Applies the Transform t to the object. |
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 |
getDimension()
Returns the external dimension of the shape. |
java.util.ArrayList<PointND> |
getHits(AbstractCurve other)
|
int |
getInternalDimension()
returns the internal dimension of the shape, i.e. |
Axis |
getPrincipalAxis()
|
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less. |
boolean |
isBounded()
Returns true if the shape is of limited space |
boolean |
isMember(PointND hit)
Determines if the given point in within the bounds of shape; |
Methods inherited from class edu.stanford.rsl.konrad.geometry.shapes.simple.SimpleSurface |
---|
addAllBoundingConditions, addBoundingCondition, getChangeOfAxisMatrix, getTransform, intersect |
Methods inherited from class edu.stanford.rsl.konrad.geometry.AbstractShape |
---|
getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArbitrarySurface(SimpleSurface baseSurface, java.util.Collection<? extends AbstractBoundingCondition> clipSurfaces)
Method Detail |
---|
public boolean isMember(PointND hit)
SimpleSurface
isMember
in class SimpleSurface
public java.util.ArrayList<PointND> getHits(AbstractCurve other)
getHits
in class SimpleSurface
public boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public PointND evaluate(PointND u)
AbstractShape
evaluate
in class SimpleSurface
u
- the point in the internal parameter dimension
public int getDimension()
AbstractShape
getDimension
in class AbstractShape
public int getInternalDimension()
AbstractShape
getInternalDimension
in class SimpleSurface
public void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class AbstractShape
t
- the transform to apply to the object.public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of points
public Axis getPrincipalAxis()
getPrincipalAxis
in class SimpleSurface
public PointND evaluate(double u, double v)
AbstractSurface
evaluate
in class AbstractSurface
u
- the internal position in u dimensionv
- the internal position in v dimension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |