Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Convert_CompBezierCurvesToBSplineCurveBase< PointType, VecType > Class Template Reference

Template base class for converting a sequence of adjacent non-rational Bezier curves into a BSpline curve. PointType is gp_Pnt or gp_Pnt2d; VecType is gp_Vec or gp_Vec2d. More...

#include <Convert_CompBezierCurvesToBSplineCurveBase.hxx>

Public Member Functions

 Convert_CompBezierCurvesToBSplineCurveBase (const double theAngularTolerance=1.0e-4)
 Constructs a framework for converting a sequence of adjacent non-rational Bezier curves into a BSpline curve.
 
void AddCurve (const NCollection_Array1< PointType > &thePoles)
 Adds the Bezier curve defined by the table of poles to the sequence of adjacent Bezier curves to be converted.
 
void Perform ()
 Computes all the data needed to build a BSpline curve equivalent to the adjacent Bezier curve sequence.
 
int Degree () const
 Returns the degree of the BSpline curve.
 
int NbPoles () const
 Returns the number of poles of the BSpline curve.
 
void Poles (NCollection_Array1< PointType > &thePoles) const
 Loads the Poles table with the poles of the BSpline curve.
 
int NbKnots () const
 Returns the number of knots of the BSpline curve.
 
void KnotsAndMults (NCollection_Array1< double > &theKnots, NCollection_Array1< int > &theMults) const
 Loads the Knots and Mults tables with the knots and corresponding multiplicities of the BSpline curve.
 

Detailed Description

template<typename PointType, typename VecType>
class Convert_CompBezierCurvesToBSplineCurveBase< PointType, VecType >

Template base class for converting a sequence of adjacent non-rational Bezier curves into a BSpline curve. PointType is gp_Pnt or gp_Pnt2d; VecType is gp_Vec or gp_Vec2d.

Constructor & Destructor Documentation

◆ Convert_CompBezierCurvesToBSplineCurveBase()

Constructs a framework for converting a sequence of adjacent non-rational Bezier curves into a BSpline curve.

Parameters
[in]theAngularToleranceangular tolerance in radians for checking tangent parallelism at junction points

Member Function Documentation

◆ AddCurve()

Adds the Bezier curve defined by the table of poles to the sequence of adjacent Bezier curves to be converted.

Parameters
[in]thePolespoles of the Bezier curve to add

◆ Degree()

Returns the degree of the BSpline curve.

◆ KnotsAndMults()

Loads the Knots and Mults tables with the knots and corresponding multiplicities of the BSpline curve.

Parameters
[out]theKnotsarray to fill with knots
[out]theMultsarray to fill with multiplicities

◆ NbKnots()

Returns the number of knots of the BSpline curve.

◆ NbPoles()

Returns the number of poles of the BSpline curve.

◆ Perform()

Computes all the data needed to build a BSpline curve equivalent to the adjacent Bezier curve sequence.

◆ Poles()

Loads the Poles table with the poles of the BSpline curve.

Parameters
[out]thePolesarray to fill with poles

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