3.4.1
tigl::CCSTCurveBuilder Class Reference

The CCSTCurveBuilder class generates a B-Spline Curve from a CST parameterization. More...

#include <CCSTCurveBuilder.h>

Public Types

enum  Algorithm { Algorithm::Piecewise_Chebychev_Approximation = 0, Algorithm::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
 

Detailed Description

The CCSTCurveBuilder class generates a B-Spline Curve from a CST parameterization.

Member Enumeration Documentation

◆ Algorithm

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 

Constructor & Destructor Documentation

◆ CCSTCurveBuilder()

TIGL_EXPORT tigl::CCSTCurveBuilder::CCSTCurveBuilder ( double  N1,
double  N2,
const std::vector< double > &  B,
double  T,
Algorithm  method = Algorithm::Piecewise_Chebychev_Approximation 
)

Member Function Documentation

◆ B()

TIGL_EXPORT std::vector<double> tigl::CCSTCurveBuilder::B ( ) const

◆ Handle()

TIGL_EXPORT tigl::CCSTCurveBuilder::Handle ( Geom_BSplineCurve  )

◆ N1()

TIGL_EXPORT double tigl::CCSTCurveBuilder::N1 ( ) const

◆ N2()

TIGL_EXPORT double tigl::CCSTCurveBuilder::N2 ( ) const

◆ T()

TIGL_EXPORT double tigl::CCSTCurveBuilder::T ( ) const

Field Documentation

◆ _algo

Algorithm tigl::CCSTCurveBuilder::_algo
private

◆ _b

std::vector<double> tigl::CCSTCurveBuilder::_b
private

◆ _degree

int tigl::CCSTCurveBuilder::_degree
private

◆ _n1

double tigl::CCSTCurveBuilder::_n1
private

◆ _n2

double tigl::CCSTCurveBuilder::_n2
private

◆ _t

double tigl::CCSTCurveBuilder::_t
private

◆ _tol

double tigl::CCSTCurveBuilder::_tol
private

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