public class TimeVariantSurfaceBSpline extends AbstractSurface
Constructor and Description |
---|
TimeVariantSurfaceBSpline(java.util.ArrayList<SurfaceBSpline> splines) |
TimeVariantSurfaceBSpline(SurfaceBSpline timeInvariant,
MotionField motion,
int timePoints,
boolean addInitial) |
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(double u,
double v,
double t) |
PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u.
|
PointND |
evaluateFull(double u,
double v,
double t)
Deprecated.
|
float[] |
getBinaryRepresentation()
Returns a binary representation of a time variant surface spline:
|
java.util.ArrayList<PointND> |
getControlPoints(int time) |
int |
getDimension()
Returns the external dimension of the shape.
|
int |
getInternalDimension()
returns the internal dimension of the shape, i.e.
|
int |
getNumberOfTimePoints() |
PointND[] |
getRasterPoints(double samplingU,
double samplingV,
double time) |
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
PointND[] |
getRasterPoints(int number,
double time) |
java.util.ArrayList<SurfaceBSpline> |
getSplines() |
java.lang.String |
getTitle() |
java.util.ArrayList<PointND> |
intersect(AbstractCurve other)
Returns the intersection points between the curve and the shape.
|
boolean |
isBounded()
Returns true if the shape is of limited space
|
boolean |
isClockwise() |
void |
setTitle(java.lang.String title) |
AbstractShape |
tessellate(double accuracy)
Creates a list of connected triangles that can be used to approximate the object.
|
AbstractShape |
tessellateMesh(double samplingU,
double samplingV,
double time) |
getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin, getName, setName
public TimeVariantSurfaceBSpline(java.util.ArrayList<SurfaceBSpline> splines)
public TimeVariantSurfaceBSpline(SurfaceBSpline timeInvariant, MotionField motion, int timePoints, boolean addInitial)
public boolean isClockwise()
public int getNumberOfTimePoints()
public java.util.ArrayList<PointND> getControlPoints(int time)
public void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class AbstractShape
t
- the transform to apply to the object.public int getDimension()
AbstractShape
getDimension
in class AbstractShape
public PointND evaluate(PointND u)
AbstractShape
evaluate
in class AbstractSurface
u
- the point in the internal parameter dimensionpublic PointND evaluate(double u, double v, double t)
@Deprecated public PointND evaluateFull(double u, double v, double t)
public PointND[] getRasterPoints(double samplingU, double samplingV, double time)
public AbstractShape tessellateMesh(double samplingU, double samplingV, double time)
public int getInternalDimension()
AbstractShape
getInternalDimension
in class AbstractSurface
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of pointspublic PointND[] getRasterPoints(int number, double time)
public java.util.ArrayList<PointND> intersect(AbstractCurve other)
AbstractShape
intersect
in class AbstractShape
public void setTitle(java.lang.String title)
title
- the title to setpublic java.lang.String getTitle()
public boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public float[] getBinaryRepresentation()
type total size in float values # of surface splines ID timeSpline surfaceSplines
public java.util.ArrayList<SurfaceBSpline> getSplines()
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]