T
- The type of this parametric geometry object.public interface ParametricGeometry<T extends ParametricGeometry> extends GeomElement<T>, Transformable<T>
GeomElement
objects that have parametric
dimensions.
Modified by: Joseph A. Huwaldt
Modifier and Type | Method and Description |
---|---|
T |
copy()
Returns a copy of this ParametricGeometry instance
allocated by the calling
thread (possibly on the stack). |
SubrangePoint |
getClosest(GeomPoint point,
double tol)
Returns the closest point on this parametric object to the specified
point.
|
java.util.List<java.util.List<Vector<Length>>> |
getDerivatives(GeomPoint s,
int grade)
Calculate all the derivatives from
0 to grade
with respect to parametric position(s) on a parametric object for the
given parametric position on the object,
d^{grade}p(s)/d^{grade}s . |
SubrangePoint |
getFarthest(GeomPoint point,
double tol)
Returns the farthest point on this parametric object from the specified
point.
|
SubrangePoint |
getPoint(GeomPoint s)
Return a subrange point on the parametric geometry for the given
parametric distance along the parametric geometry.
|
Point |
getRealPoint(GeomPoint s)
Calculate a point on the parametric geometry for the given parametric
distance along the parametric geometry.
|
boolean |
isDegenerate(Parameter<Length> tol)
Return
true if this element is degenerate (i.e.: has length or area
less than the specified tolerance). |
T |
to(Unit<Length> unit)
Returns the equivalent to this parametric object but stated in the
specified unit.
|
T |
toDimension(int newDim)
Return a copy of this parametric geometry converted to the specified
number of physical dimensions.
|
getTransformed
addChangeListener, copyToReal, getAllUserData, getBoundsMax, getBoundsMin, getID, getLimitPoint, getName, getParDimension, getPhyDimension, getUnit, getUserData, isValid, putAllUserData, putUserData, removeChangeListener, removeUserData, setName, size, toText
SubrangePoint getPoint(GeomPoint s)
s
- parametric distance to calculate a point for. Must be a
1-dimensional point with a value in the range 0 to 1.0.Point getRealPoint(GeomPoint s)
s
- parametric distance to calculate a point for. Must be a
1-dimensional point with a value in the range 0 to 1.0.java.util.List<java.util.List<Vector<Length>>> getDerivatives(GeomPoint s, int grade)
0
to grade
with respect to parametric position(s) on a parametric object for the
given parametric position on the object,
d^{grade}p(s)/d^{grade}s
.
Example:
1st derivative (grade = 1), this returns [p(s), dp(s)/ds]
;
2nd derivative (grade = 2), this returns [p(s), dp(s)/ds, d^2p(s)/d^2s]
; etc.
s
- parametric position to calculate the derivatives for. Must match
the parametric dimension of this parametric surface and have each value
in the range 0 to 1.0. Units are ignored.grade
- The maximum grade to calculate the derivatives for (1=1st
derivative, 2=2nd derivative, etc)java.lang.IllegalArgumentException
- if the grade is < 0.SubrangePoint getClosest(GeomPoint point, double tol)
point
- The point to find the closest point on this parametric
object to.tol
- Fractional tolerance (in parameter space) to refine the point
position to.SubrangePoint getFarthest(GeomPoint point, double tol)
point
- The point to find the farthest point on this parametric
object from.tol
- Fractional tolerance (in parameter space) to refine the point
position to.SubrangePoint
on this parametric object that is
farthest from the specified point.boolean isDegenerate(Parameter<Length> tol)
true
if this element is degenerate (i.e.: has length or area
less than the specified tolerance).tol
- The tolerance for determining if this element is degenerate. May not be
null.T to(Unit<Length> unit) throws ConversionException
to
in interface GeomElement<T extends ParametricGeometry>
unit
- the length unit of the parametric object to be returned.ConversionException
- if the the input unit is not a length unit.T toDimension(int newDim)
toDimension
in interface GeomElement<T extends ParametricGeometry>
newDim
- The dimension of the parametric geometry element to return.T copy()
allocated
by the calling
thread (possibly on the stack).copy
in interface GeomElement<T extends ParametricGeometry>