|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.math.functions.Function
com.hedgehog.math.functions.BivariateRationalBSplinePolynomialFunction
public class BivariateRationalBSplinePolynomialFunction
Title: BivariateRationalBSplinePolynomialFunction - models a bivariate rational B-spline polynomial function
Description: Models a bivariate rational B-spline polynomial function, frequently used when modelling BSpline surfaces.
For further details refer to "The NURBS Book" by L Peigl and W Tiller, 2nd edition, Springer, 1997.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary | |
|---|---|
protected int |
mpDegree
Degree p in u-direction. |
protected int |
mqDegree
Degree q in v-direction. |
protected KnotVector |
muKnotVector
Knot vector in u-direction. |
protected KnotVector |
mvKnotVector
Knot vector in v-direction. |
protected FloatingPointFullMatrix |
mWeights
Control point weight matrix. |
| Fields inherited from class com.hedgehog.math.functions.Function |
|---|
method |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
BivariateRationalBSplinePolynomialFunction()
Default constructor. |
|
BivariateRationalBSplinePolynomialFunction(BivariateRationalBSplinePolynomialFunction object)
Copy constructor. |
|
BivariateRationalBSplinePolynomialFunction(int pDegree,
int qDegree,
KnotVector uKnotVector,
KnotVector vKnotVector,
FloatingPointFullMatrix weights)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getDegreeP()
Returns the degree p. |
int |
getDegreeQ()
Returns the degree q. |
KnotVector |
getKnotVectorU()
Returns the knot vector in the u-direction. |
KnotVector |
getKnotVectorV()
Returns the knot vector in the v-direction. |
double |
getValue(int i,
int j,
double u,
double v)
Returns the value of a bivariate rational B-spline polynomial given i, j, u and v |
FloatingPointFullMatrix |
getWeights()
Returns the control point weight matrix. |
boolean |
isValid()
Tests the validity of this object. |
void |
setDegreeP(int pDegree)
Sets the degree p. |
void |
setDegreeQ(int qDegree)
Sets the degree q. |
void |
setKnotVectorU(KnotVector uKnotVector)
Sets the knot vector in the u-direction. |
void |
setKnotVectorV(KnotVector vKnotVector)
Sets the knot vector in the v-direction. |
void |
setWeights(FloatingPointFullMatrix weights)
Sets the control point weight matrix. |
java.lang.String |
toString()
Returns a String representation of a BivariateRationalBSplinePolynomialFunction object. |
| Methods inherited from class com.hedgehog.math.functions.Function |
|---|
getMethod, setMethod |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int mpDegree
protected int mqDegree
protected KnotVector muKnotVector
protected KnotVector mvKnotVector
protected FloatingPointFullMatrix mWeights
| Constructor Detail |
|---|
public BivariateRationalBSplinePolynomialFunction()
public BivariateRationalBSplinePolynomialFunction(int pDegree,
int qDegree,
KnotVector uKnotVector,
KnotVector vKnotVector,
FloatingPointFullMatrix weights)
throws java.lang.IllegalArgumentException
pDegree - p-degree in the u-direction.qDegree - q-degree in the u-direction.uKnotVector - Knot vector in the u-direction.vKnotVector - Knot vector in the v-direction.weights - Control point weight matrix.
java.lang.IllegalArgumentException - Thrown if pDegree or qDegree < 1, the knot vectors are of size < 1 or are not non-decreasing.public BivariateRationalBSplinePolynomialFunction(BivariateRationalBSplinePolynomialFunction object)
object - Object to copy.| Method Detail |
|---|
public int getDegreeP()
public void setDegreeP(int pDegree)
pDegree - New degree p.public int getDegreeQ()
public void setDegreeQ(int qDegree)
qDegree - New degree q.public KnotVector getKnotVectorU()
public KnotVector getKnotVectorV()
public void setKnotVectorU(KnotVector uKnotVector)
uKnotVector - New knot vector in the u-direction.public void setKnotVectorV(KnotVector vKnotVector)
vKnotVector - New knot vector in the v-direction.public FloatingPointFullMatrix getWeights()
public void setWeights(FloatingPointFullMatrix weights)
weights - New control point weight matrix.
public double getValue(int i,
int j,
double u,
double v)
throws java.lang.IllegalArgumentException,
InvalidObjectException
i - Index i.j - Index j.u - u-direction parametric variable.v - v-direction parametric variable.
java.lang.IllegalArgumentException - Thrown if either i, j, u or v are out of range.
InvalidObjectException - Thrown if the knot vectors are empty.public boolean isValid()
isValid in class Functionpublic java.lang.String toString()
toString in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||