NURBSbasis function. Used to construct NURBS curves, surfaces and volumes. More...
#include <NURBSbasis.H>
Public Member Functions | |
| TypeName ("NURBbasis") | |
| Runtime type information. | |
| NURBSbasis (const label nCPs, const label degree, const scalarField &knots) | |
| Construct from number of control points, knot vector and basis order. | |
| NURBSbasis (const label nCPs, const label degree) | |
| Construct from number of control points and basis order. | |
| NURBSbasis (const dictionary &dict) | |
| Construct from dictionary. | |
| NURBSbasis (const NURBSbasis &) | |
| Construct as copy. | |
| virtual | ~NURBSbasis ()=default |
| Destructor. | |
| scalar | basisValue (const label iCP, const label degree, const scalar u) const |
| Basis value. | |
| scalar | basisDerivativeU (const label iCP, const label degree, const scalar u) const |
| Basis derivative w.r.t u. | |
| scalar | basisDerivativeUU (const label iCP, const label degree, const scalar u) const |
| Basis second derivative w.r.t u. | |
| bool | checkRange (const scalar u, const label CPI, const label degree) const |
| Checks to see if given u is affected by given CP. | |
| label | insertKnot (const scalar uBar) |
| Adds the new knot's u value, increments the nCPs and returns 'k', the index of the newly inserted uValue. | |
| const scalarField & | knots () const |
| const label & | degree () const |
| const label & | nCPs () const |
NURBSbasis function. Used to construct NURBS curves, surfaces and volumes.
Definition at line 51 of file NURBSbasis.H.
| NURBSbasis | ( | const label | nCPs, |
| const label | degree, | ||
| const scalarField & | knots ) |
Construct from number of control points, knot vector and basis order.
Definition at line 76 of file NURBSbasis.C.
References degree(), knots(), and nCPs().
Referenced by NURBSbasis(), and TypeName().


| NURBSbasis | ( | const label | nCPs, |
| const label | degree ) |
Construct from number of control points and basis order.
Assumes uniform knot vector
Definition at line 89 of file NURBSbasis.C.
References degree(), nCPs(), and Foam::Zero.

| NURBSbasis | ( | const dictionary & | dict | ) |
Construct from dictionary.
Assumes uniform knot vector
Definition at line 103 of file NURBSbasis.C.
References dict, and Foam::Zero.
| NURBSbasis | ( | const NURBSbasis & | basis | ) |
Construct as copy.
Definition at line 116 of file NURBSbasis.C.
References DebugInfo, Foam::endl(), and NURBSbasis().

|
virtualdefault |
| TypeName | ( | "NURBbasis" | ) |
Runtime type information.
References degree(), dict, knots(), nCPs(), and NURBSbasis().

| scalar basisValue | ( | const label | iCP, |
| const label | degree, | ||
| const scalar | u ) const |
Basis value.
Definition at line 132 of file NURBSbasis.C.
References basisValue(), checkRange(), and degree().
Referenced by basisDerivativeU(), and basisValue().


| scalar basisDerivativeU | ( | const label | iCP, |
| const label | degree, | ||
| const scalar | u ) const |
Basis derivative w.r.t u.
Definition at line 182 of file NURBSbasis.C.
References basisDerivativeU(), basisValue(), checkRange(), and degree().
Referenced by basisDerivativeU(), and basisDerivativeUU().


| scalar basisDerivativeUU | ( | const label | iCP, |
| const label | degree, | ||
| const scalar | u ) const |
Basis second derivative w.r.t u.
Definition at line 223 of file NURBSbasis.C.
References basisDerivativeU(), basisDerivativeUU(), checkRange(), and degree().
Referenced by basisDerivativeUU().


| bool checkRange | ( | const scalar | u, |
| const label | CPI, | ||
| const label | degree ) const |
Checks to see if given u is affected by given CP.
Definition at line 265 of file NURBSbasis.C.
References degree().
Referenced by basisDerivativeU(), basisDerivativeUU(), and basisValue().


| label insertKnot | ( | const scalar | uBar | ) |
Adds the new knot's u value, increments the nCPs and returns 'k', the index of the newly inserted uValue.
uBar should be pre-bounded between 0,1.
Definition at line 290 of file NURBSbasis.C.
References UList< T >::size(), and Foam::Zero.

|
inline |
Definition at line 27 of file NURBSbasisI.H.
Referenced by NURBSbasis(), and TypeName().

|
inline |
Definition at line 33 of file NURBSbasisI.H.
Referenced by basisDerivativeU(), basisDerivativeUU(), basisValue(), checkRange(), NURBSbasis(), NURBSbasis(), TypeName(), and ~NURBSbasis().

|
inline |
Definition at line 39 of file NURBSbasisI.H.
Referenced by NURBSbasis(), NURBSbasis(), and TypeName().
