![]() |
Open CASCADE Technology Reference Manual 8.0.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 (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_CacheParams & | operator= (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 | |
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 |
|
delete |
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 |
|
delete |
Normalizes the parameter for periodic B-splines.
| theParameter | the value to be normalized into the knots array |
| const int BSplCLib_CacheParams::Degree |
degree of Bezier/B-spline
| const double BSplCLib_CacheParams::FirstParameter |
first valid parameter
| const bool BSplCLib_CacheParams::IsPeriodic |
true of the B-spline is periodic
| const double BSplCLib_CacheParams::LastParameter |
last valid parameter
| int BSplCLib_CacheParams::SpanIndex |
index of the span
| const int BSplCLib_CacheParams::SpanIndexMax |
maximal index of span
| const int BSplCLib_CacheParams::SpanIndexMin |
minimal index of span
| double BSplCLib_CacheParams::SpanLength |
length of the span
| double BSplCLib_CacheParams::SpanStart |
parameter for the frst point of the span