Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
BSplCLib_CacheParams Struct Reference

Simple structure containing parameters describing parameterization of a B-spline curve or a surface in one direction (U or V), and data of the current span for its caching. More...

#include <BSplCLib_CacheParams.hxx>

Public Member Functions

 BSplCLib_CacheParams (int theDegree, bool thePeriodic, const NCollection_Array1< double > &theFlatKnots)
 Constructor, prepares data structures for caching.
 
double PeriodicNormalization (double theParameter) const noexcept
 Normalizes the parameter for periodic B-splines.
 
bool IsCacheValid (double theParameter) const noexcept
 Verifies validity of the cache using flat parameter of the point.
 
void LocateParameter (double &theParameter, const NCollection_Array1< double > &theFlatKnots)
 Computes span for the specified parameter.
 
 BSplCLib_CacheParams (const BSplCLib_CacheParams &)=delete
 
BSplCLib_CacheParamsoperator= (const BSplCLib_CacheParams &)=delete
 

Data Fields

const int Degree
 degree of Bezier/B-spline
 
const bool IsPeriodic
 true of the B-spline is periodic
 
const double FirstParameter
 first valid parameter
 
const double LastParameter
 last valid parameter
 
const int SpanIndexMin
 minimal index of span
 
const int SpanIndexMax
 maximal index of span
 
double SpanStart
 parameter for the frst point of the span
 
double SpanLength
 length of the span
 
int SpanIndex
 index of the span
 

Detailed Description

Simple structure containing parameters describing parameterization of a B-spline curve or a surface in one direction (U or V), and data of the current span for its caching.

Constructor & Destructor Documentation

◆ BSplCLib_CacheParams() [1/2]

BSplCLib_CacheParams::BSplCLib_CacheParams ( int theDegree,
bool thePeriodic,
const NCollection_Array1< double > & theFlatKnots )
inline

Constructor, prepares data structures for caching.

Parameters
theDegreedegree of the B-spline (or Bezier)
thePeriodicidentify whether the B-spline is periodic
theFlatKnotsknots of Bezier / B-spline parameterization

◆ BSplCLib_CacheParams() [2/2]

BSplCLib_CacheParams::BSplCLib_CacheParams ( const BSplCLib_CacheParams & )
delete

Member Function Documentation

◆ IsCacheValid()

bool BSplCLib_CacheParams::IsCacheValid ( double theParameter) const
inlinenoexcept

Verifies validity of the cache using flat parameter of the point.

Parameters
theParameterparameter of the point placed in the span

◆ LocateParameter()

void BSplCLib_CacheParams::LocateParameter ( double & theParameter,
const NCollection_Array1< double > & theFlatKnots )
inline

Computes span for the specified parameter.

Parameters
theParameterparameter of the point placed in the span
theFlatKnotsknots of Bezier / B-spline parameterization

◆ operator=()

BSplCLib_CacheParams & BSplCLib_CacheParams::operator= ( const BSplCLib_CacheParams & )
delete

◆ PeriodicNormalization()

double BSplCLib_CacheParams::PeriodicNormalization ( double theParameter) const
inlinenoexcept

Normalizes the parameter for periodic B-splines.

Parameters
theParameterthe value to be normalized into the knots array

Field Documentation

◆ Degree

const int BSplCLib_CacheParams::Degree

degree of Bezier/B-spline

◆ FirstParameter

const double BSplCLib_CacheParams::FirstParameter

first valid parameter

◆ IsPeriodic

const bool BSplCLib_CacheParams::IsPeriodic

true of the B-spline is periodic

◆ LastParameter

const double BSplCLib_CacheParams::LastParameter

last valid parameter

◆ SpanIndex

int BSplCLib_CacheParams::SpanIndex

index of the span

◆ SpanIndexMax

const int BSplCLib_CacheParams::SpanIndexMax

maximal index of span

◆ SpanIndexMin

const int BSplCLib_CacheParams::SpanIndexMin

minimal index of span

◆ SpanLength

double BSplCLib_CacheParams::SpanLength

length of the span

◆ SpanStart

double BSplCLib_CacheParams::SpanStart

parameter for the frst point of the span


The documentation for this struct was generated from the following file: