The CCSTCurveBuilder class generates a B-Spline Curve from a CST parameterization. More...
#include <CCSTCurveBuilder.h>
Public Types | |
| enum class | Algorithm { Piecewise_Chebychev_Approximation = 0 , GeomAPI_PointsToBSpline } |
| The Algorithm enum gives a choice of the method. More... | |
Public Member Functions | |
| TIGL_EXPORT std::vector< double > | B () const |
| TIGL_EXPORT | CCSTCurveBuilder (double N1, double N2, const std::vector< double > &B, double T, Algorithm method=Algorithm::Piecewise_Chebychev_Approximation) |
| TIGL_EXPORT | Handle (Geom_BSplineCurve) Curve() |
| TIGL_EXPORT double | N1 () const |
| TIGL_EXPORT double | N2 () const |
| TIGL_EXPORT double | T () const |
Private Attributes | |
| Algorithm | _algo |
| std::vector< double > | _b |
| int | _degree |
| double | _n1 |
| double | _n2 |
| double | _t |
| double | _tol |
The CCSTCurveBuilder class generates a B-Spline Curve from a CST parameterization.
|
strong |
The Algorithm enum gives a choice of the method.
Piecewise_Chebychev_Approximation subdivides the curve into segments, where each segment is approximated using a Chebychev polynomials. The final result is the C1 concatenation of these polynomials to a B-Spline
GeomAPI_PointsToBSpline uses OCCT's internal approximation algorithm to create a B-Spline that approximates a CST Curve.
| Enumerator | |
|---|---|
| Piecewise_Chebychev_Approximation | |
| GeomAPI_PointsToBSpline | |
| TIGL_EXPORT tigl::CCSTCurveBuilder::CCSTCurveBuilder | ( | double | N1, |
| double | N2, | ||
| const std::vector< double > & | B, | ||
| double | T, | ||
| Algorithm | method = Algorithm::Piecewise_Chebychev_Approximation ) |
| TIGL_EXPORT std::vector< double > tigl::CCSTCurveBuilder::B | ( | ) | const |
| TIGL_EXPORT tigl::CCSTCurveBuilder::Handle | ( | Geom_BSplineCurve | ) |
| TIGL_EXPORT double tigl::CCSTCurveBuilder::N1 | ( | ) | const |
| TIGL_EXPORT double tigl::CCSTCurveBuilder::N2 | ( | ) | const |
| TIGL_EXPORT double tigl::CCSTCurveBuilder::T | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |