public class ArbitrarySurface extends SimpleSurface
Constructor and Description |
---|
ArbitrarySurface(SimpleSurface baseSurface,
java.util.Collection<? extends AbstractBoundingCondition> clipSurfaces) |
Modifier and Type | Method and Description |
---|---|
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;
|
AbstractShape |
tessellate(double accuracy)
Creates a list of connected triangles that can be used to approximate the object.
|
addAllBoundingConditions, addBoundingCondition, getChangeOfAxisMatrix, getRasterPoints, getTransform, intersect
getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin, getName, setName
public ArbitrarySurface(SimpleSurface baseSurface, java.util.Collection<? extends AbstractBoundingCondition> clipSurfaces)
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 dimensionpublic 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 SimpleSurface
t
- the transform to apply to the object.public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of pointspublic 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 dimensionpublic AbstractShape tessellate(double accuracy)
AbstractSurface
tessellate
in class AbstractSurface
accuracy
- the maximal deviation in [mm]