|
||||||||||
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.AbstractCurve
edu.stanford.rsl.konrad.geometry.splines.BSpline
public class BSpline
Constructor Summary | |
---|---|
BSpline(java.util.ArrayList<PointND> controlPoints,
double... uVector)
|
|
BSpline(java.util.ArrayList<PointND> controlPoints,
SimpleVector knotVector)
Constructor for a BSpline using ArbitraryPoints and a weight vector as SimpleVector |
Method Summary | |
---|---|
void |
applyTransform(Transform t)
Applies the Transform t to the object. |
void |
computeBounds()
Computes the bounding box for the curve. |
double |
distance(double[] planeCoefficients,
double u)
|
double |
distance(double[] planeCoefficients,
int i)
|
PointND |
evaluate(double u)
Returns a point on the Curve at position u [0, 1]; |
PointND |
getControlPoint(int i)
Returns the i-th control point |
int |
getDegree()
Returns the degree of the spline. |
int |
getDimension()
Returns the external dimension of the shape. |
double |
getKnotVectorEntry(int i)
Returns the i-th knot vector entry. |
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less. |
double |
getWeight(double u,
int i)
Computes N iteratively. |
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 |
Methods inherited from class edu.stanford.rsl.konrad.geometry.AbstractCurve |
---|
evaluate, getInternalDimension |
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 BSpline(java.util.ArrayList<PointND> controlPoints, double... uVector)
public BSpline(java.util.ArrayList<PointND> controlPoints, SimpleVector knotVector)
controlPoints
- the control pointsknotVector
- the weight vectorMethod Detail |
---|
public PointND evaluate(double u)
AbstractCurve
evaluate
in class AbstractCurve
u
- the internal position
public int getDimension()
AbstractShape
getDimension
in class AbstractShape
public double getWeight(double u, int i)
u
- the point on the curvei
- the control point
public void computeBounds()
public PointND getControlPoint(int i)
i
- the index
public double getKnotVectorEntry(int i)
i
-
public int getDegree()
public java.util.ArrayList<PointND> intersect(AbstractCurve other)
AbstractShape
intersect
in class AbstractShape
public boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public double distance(double[] planeCoefficients, double u)
public double distance(double[] planeCoefficients, int i)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |