j3d.org Code

org.j3d.geom.spline
Class BSplineCurveData

java.lang.Object
  extended by org.j3d.geom.spline.BSplineCurveData

public class BSplineCurveData
extends java.lang.Object

Representation of data that represents a single B-Spline curve.

The curve data may represent either rational or non-rational forms. If the numWeights value is positive then it will assume a rational curve form, otherwise a non-rational calculation will be used.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 float[] controlPoints
          The control points of the curve described as a flat array of values.
 int degree
          The degree of the curve
 float[] knots
          The knot values for the curve
 int numControlPoints
          The number of valid points in the controlPoints array.
 int numKnots
          The number of valid knot values in the knots array
 int numWeights
          The number of valid weight values in the weights array
 float[] weights
          The weight values for the curve if rational
 
Constructor Summary
BSplineCurveData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controlPoints

public float[] controlPoints
The control points of the curve described as a flat array of values. The array must be at least 3 * numControlPoints in length.


numControlPoints

public int numControlPoints
The number of valid points in the controlPoints array.


knots

public float[] knots
The knot values for the curve


numKnots

public int numKnots
The number of valid knot values in the knots array


degree

public int degree
The degree of the curve


weights

public float[] weights
The weight values for the curve if rational


numWeights

public int numWeights
The number of valid weight values in the weights array

Constructor Detail

BSplineCurveData

public BSplineCurveData()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org