Public Member Functions | List of all members
NURBSbasis Class Reference

NURBSbasis function. Used to construct NURBS curves, surfaces and volumes. More...

Public Member Functions

 TypeName ("NURBbasis")
 
 NURBSbasis (const label nCPs, const label degree, const scalarField &knots)
 
 NURBSbasis (const label nCPs, const label degree)
 
 NURBSbasis (const dictionary &dict)
 
 NURBSbasis (const NURBSbasis &)
 
virtual ~NURBSbasis ()=default
 
scalar basisValue (const label iCP, const label degree, const scalar u) const
 
scalar basisDerivativeU (const label iCP, const label degree, const scalar u) const
 
scalar basisDerivativeUU (const label iCP, const label degree, const scalar u) const
 
bool checkRange (const scalar u, const label CPI, const label degree) const
 
label insertKnot (const scalar uBar)
 
const scalarFieldknots () const
 
const label & degree () const
 
const label & nCPs () const
 

Detailed Description

NURBSbasis function. Used to construct NURBS curves, surfaces and volumes.

Source files

Definition at line 51 of file NURBSbasis.H.

Constructor & Destructor Documentation

◆ NURBSbasis() [1/4]

NURBSbasis ( const label  nCPs,
const label  degree,
const scalarField knots 
)

Definition at line 77 of file NURBSbasis.C.

◆ NURBSbasis() [2/4]

NURBSbasis ( const label  nCPs,
const label  degree 
)

Definition at line 90 of file NURBSbasis.C.

◆ NURBSbasis() [3/4]

NURBSbasis ( const dictionary dict)

Definition at line 104 of file NURBSbasis.C.

◆ NURBSbasis() [4/4]

NURBSbasis ( const NURBSbasis basis)

Definition at line 117 of file NURBSbasis.C.

References DebugInfo, and Foam::endl().

Here is the call graph for this function:

◆ ~NURBSbasis()

virtual ~NURBSbasis ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "NURBbasis"  )

◆ basisValue()

scalar basisValue ( const label  iCP,
const label  degree,
const scalar  u 
) const

◆ basisDerivativeU()

scalar basisDerivativeU ( const label  iCP,
const label  degree,
const scalar  u 
) const

Definition at line 183 of file NURBSbasis.C.

Referenced by NURBS3DCurve::curveDerivativeU(), and NURBS3DCurve::curveDerivativeUU().

Here is the caller graph for this function:

◆ basisDerivativeUU()

scalar basisDerivativeUU ( const label  iCP,
const label  degree,
const scalar  u 
) const

Definition at line 224 of file NURBSbasis.C.

Referenced by NURBS3DCurve::curveDerivativeUU().

Here is the caller graph for this function:

◆ checkRange()

bool checkRange ( const scalar  u,
const label  CPI,
const label  degree 
) const

Definition at line 266 of file NURBSbasis.C.

Referenced by NURBS3DCurve::checkRange().

Here is the caller graph for this function:

◆ insertKnot()

label insertKnot ( const scalar  uBar)

Definition at line 291 of file NURBSbasis.C.

References Foam::Zero.

◆ knots()

const Foam::scalarField & knots ( ) const
inline

Definition at line 27 of file NURBSbasisI.H.

◆ degree()

const Foam::label & degree ( ) const
inline

◆ nCPs()

const Foam::label & nCPs ( ) const
inline

The documentation for this class was generated from the following files: