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>
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.
◆ 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
-
| theDegree | degree of the B-spline (or Bezier) |
| thePeriodic | identify whether the B-spline is periodic |
| theFlatKnots | knots of Bezier / B-spline parameterization |
◆ BSplCLib_CacheParams() [2/2]
◆ IsCacheValid()
| bool BSplCLib_CacheParams::IsCacheValid |
( |
double | theParameter | ) |
const |
|
inlinenoexcept |
Verifies validity of the cache using flat parameter of the point.
- Parameters
-
| theParameter | parameter 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
-
| theParameter | parameter of the point placed in the span |
| theFlatKnots | knots of Bezier / B-spline parameterization |
◆ operator=()
◆ PeriodicNormalization()
| double BSplCLib_CacheParams::PeriodicNormalization |
( |
double | theParameter | ) |
const |
|
inlinenoexcept |
Normalizes the parameter for periodic B-splines.
- Parameters
-
| theParameter | the value to be normalized into the knots array |
◆ Degree
| const int BSplCLib_CacheParams::Degree |
degree of Bezier/B-spline
◆ FirstParameter
| const double BSplCLib_CacheParams::FirstParameter |
◆ IsPeriodic
| const bool BSplCLib_CacheParams::IsPeriodic |
true of the B-spline is periodic
◆ LastParameter
| const double BSplCLib_CacheParams::LastParameter |
◆ SpanIndex
| int BSplCLib_CacheParams::SpanIndex |
◆ SpanIndexMax
| const int BSplCLib_CacheParams::SpanIndexMax |
◆ SpanIndexMin
| const int BSplCLib_CacheParams::SpanIndexMin |
◆ SpanLength
| double BSplCLib_CacheParams::SpanLength |
◆ SpanStart
| double BSplCLib_CacheParams::SpanStart |
parameter for the frst point of the span
The documentation for this struct was generated from the following file: