|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.geom.spline.BSplineUtils
public class BSplineUtils
Utility functionality useful for working with BSpline curves and surfaces.
| Constructor Summary | |
|---|---|
BSplineUtils()
|
|
| Method Summary | |
|---|---|
static int |
getKnotMultiplicity(float[] knots,
float k)
Convenience method to return the current multiplicity of the given knot value in the knot array. |
static int |
getKnotMultiplicity(float[] knots,
int numKnots,
float k)
Convenience method to return the current multiplicity of the given knot value in the knot array. |
static void |
insertKnot(BSplineCurveData inputCurve,
float knot,
BSplineCurveData outputCurve)
Insert a new knot value into the curve. |
static void |
insertKnot(BSplineCurveData inputCurve,
float knot,
int times,
BSplineCurveData outputCurve)
Insert a new knot value multiple times into the curve. |
static void |
interpolatePoint(BSplineCurveData inputCurve,
float t,
float[] point)
Given the curve data, evaluate the exact point point on the curve in 3D space for the given value of t. |
static void |
subdivide(BSplineCurveData inputCurve,
float fraction,
BSplineCurveData outputCurve1,
BSplineCurveData outputCurve2)
Subdivide the input curve into two curves, represented by the two output curve functions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BSplineUtils()
| Method Detail |
|---|
public static int getKnotMultiplicity(float[] knots,
float k)
knots - The array of current knot valuesk - The target knot value
public static int getKnotMultiplicity(float[] knots,
int numKnots,
float k)
knots - The array of current knot valuesnumKnots - The number of valid knot values in the arrayk - The target knot value
public static void interpolatePoint(BSplineCurveData inputCurve,
float t,
float[] point)
inputCurve - The definition of the curve to interpolate alongt - The position on the curve to calculate forpoint - An array to return the positional data in
public static void insertKnot(BSplineCurveData inputCurve,
float knot,
BSplineCurveData outputCurve)
throws java.lang.IllegalArgumentException
inputCurve - The definition of the curve to add the knot toknot - The value of the knot to insertoutputCurve - Reference to the definition to put the output in
java.lang.IllegalArgumentException - The knot value is out of range
public static void insertKnot(BSplineCurveData inputCurve,
float knot,
int times,
BSplineCurveData outputCurve)
throws java.lang.IllegalArgumentException
inputCurve - The definition of the curve to add the knot toknot - The value of the knot to inserttimes - The number of times to insert the knotoutputCurve - Reference to the definition to put the output in
java.lang.IllegalArgumentException - The knot value is out of range or
the multiplicity is <= 0
public static void subdivide(BSplineCurveData inputCurve,
float fraction,
BSplineCurveData outputCurve1,
BSplineCurveData outputCurve2)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||