Open CASCADE Technology
7.6.0
|
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... | |
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.
|
inline |
Constructor, prepares data structures for caching.
theDegree | degree of the B-spline (or Bezier) |
thePeriodic | identify whether the B-spline is periodic |
theFlatKnots | knots of Bezier / B-spline parameterization |
|
inline |
Verifies validity of the cache using flat parameter of the point.
theParameter | parameter of the point placed in the span |
|
inline |
Computes span for the specified parameter.
theParameter | parameter of the point placed in the span |
theFlatKnots | knots of Bezier / B-spline parameterization |
|
inline |
Normalizes the parameter for periodic B-splines.
theParameter | the value to be normalized into the knots array |
const Standard_Integer BSplCLib_CacheParams::Degree |
degree of Bezier/B-spline
const Standard_Real BSplCLib_CacheParams::FirstParameter |
first valid parameter
const Standard_Boolean BSplCLib_CacheParams::IsPeriodic |
true of the B-spline is periodic
const Standard_Real BSplCLib_CacheParams::LastParameter |
last valid parameter
Standard_Integer BSplCLib_CacheParams::SpanIndex |
index of the span
const Standard_Integer BSplCLib_CacheParams::SpanIndexMax |
maximal index of span
const Standard_Integer BSplCLib_CacheParams::SpanIndexMin |
minimal index of span
Standard_Real BSplCLib_CacheParams::SpanLength |
length of the span
Standard_Real BSplCLib_CacheParams::SpanStart |
parameter for the frst point of the span