Open CASCADE Technology  7.7.0
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 (Standard_Integer theDegree, Standard_Boolean thePeriodic, const TColStd_Array1OfReal &theFlatKnots)
 Constructor, prepares data structures for caching. More...
 
Standard_Real PeriodicNormalization (Standard_Real theParameter) const
 Normalizes the parameter for periodic B-splines. More...
 
Standard_Boolean IsCacheValid (Standard_Real theParameter) const
 Verifies validity of the cache using flat parameter of the point. More...
 
void LocateParameter (Standard_Real &theParameter, const TColStd_Array1OfReal &theFlatKnots)
 Computes span for the specified parameter. More...
 

Data Fields

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

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()

BSplCLib_CacheParams::BSplCLib_CacheParams ( Standard_Integer  theDegree,
Standard_Boolean  thePeriodic,
const TColStd_Array1OfReal 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

Member Function Documentation

◆ IsCacheValid()

Standard_Boolean BSplCLib_CacheParams::IsCacheValid ( Standard_Real  theParameter) const
inline

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 ( Standard_Real theParameter,
const TColStd_Array1OfReal theFlatKnots 
)
inline

Computes span for the specified parameter.

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

◆ PeriodicNormalization()

Standard_Real BSplCLib_CacheParams::PeriodicNormalization ( Standard_Real  theParameter) const
inline

Normalizes the parameter for periodic B-splines.

Parameters
theParameterthe value to be normalized into the knots array

Field Documentation

◆ Degree

const Standard_Integer BSplCLib_CacheParams::Degree

degree of Bezier/B-spline

◆ FirstParameter

const Standard_Real BSplCLib_CacheParams::FirstParameter

first valid parameter

◆ IsPeriodic

const Standard_Boolean BSplCLib_CacheParams::IsPeriodic

true of the B-spline is periodic

◆ LastParameter

const Standard_Real BSplCLib_CacheParams::LastParameter

last valid parameter

◆ SpanIndex

Standard_Integer BSplCLib_CacheParams::SpanIndex

index of the span

◆ SpanIndexMax

const Standard_Integer BSplCLib_CacheParams::SpanIndexMax

maximal index of span

◆ SpanIndexMin

const Standard_Integer BSplCLib_CacheParams::SpanIndexMin

minimal index of span

◆ SpanLength

Standard_Real BSplCLib_CacheParams::SpanLength

length of the span

◆ SpanStart

Standard_Real BSplCLib_CacheParams::SpanStart

parameter for the frst point of the span


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