Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
GeomFill_Profiler Class Reference

Evaluation of the common BSplineProfile of a group of curves from Geom. All the curves will have the same degree, the same knot-vector, so the same number of poles. More...

#include <GeomFill_Profiler.hxx>

Inheritance diagram for GeomFill_Profiler:
Inheritance graph
[legend]

Public Member Functions

 GeomFill_Profiler ()
 
virtual ~GeomFill_Profiler ()
 
void AddCurve (const occ::handle< Geom_Curve > &Curve)
 
virtual void Perform (const double PTol)
 Converts all curves to BSplineCurves. Set them to the common profile. <PTol> is used to compare 2 knots.
 
int Degree () const
 Raises if not yet perform.
 
bool IsPeriodic () const
 
int NbPoles () const
 Raises if not yet perform.
 
void Poles (const int Index, NCollection_Array1< gp_Pnt > &Poles) const
 returns in <Poles> the poles of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] if the length of <Poles> is not equal to NbPoles().
 
void Weights (const int Index, NCollection_Array1< double > &Weights) const
 returns in <Weights> the weights of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] or if the length of <Weights> is not equal to NbPoles().
 
int NbKnots () const
 Raises if not yet perform.
 
void KnotsAndMults (NCollection_Array1< double > &Knots, NCollection_Array1< int > &Mults) const
 Raises if not yet perform Raises if the lengths of <Knots> and <Mults> are not equal to NbKnots().
 
const occ::handle< Geom_Curve > & Curve (const int Index) const
 

Protected Attributes

NCollection_Sequence< occ::handle< Geom_Curve > > mySequence
 
bool myIsDone
 
bool myIsPeriodic
 

Detailed Description

Evaluation of the common BSplineProfile of a group of curves from Geom. All the curves will have the same degree, the same knot-vector, so the same number of poles.

Constructor & Destructor Documentation

◆ GeomFill_Profiler()

GeomFill_Profiler::GeomFill_Profiler ( )

◆ ~GeomFill_Profiler()

virtual GeomFill_Profiler::~GeomFill_Profiler ( )
virtual

Member Function Documentation

◆ AddCurve()

void GeomFill_Profiler::AddCurve ( const occ::handle< Geom_Curve > & Curve)

◆ Curve()

const occ::handle< Geom_Curve > & GeomFill_Profiler::Curve ( const int Index) const

◆ Degree()

int GeomFill_Profiler::Degree ( ) const

Raises if not yet perform.

◆ IsPeriodic()

bool GeomFill_Profiler::IsPeriodic ( ) const

◆ KnotsAndMults()

void GeomFill_Profiler::KnotsAndMults ( NCollection_Array1< double > & Knots,
NCollection_Array1< int > & Mults ) const

Raises if not yet perform Raises if the lengths of <Knots> and <Mults> are not equal to NbKnots().

◆ NbKnots()

int GeomFill_Profiler::NbKnots ( ) const

Raises if not yet perform.

◆ NbPoles()

int GeomFill_Profiler::NbPoles ( ) const

Raises if not yet perform.

◆ Perform()

virtual void GeomFill_Profiler::Perform ( const double PTol)
virtual

Converts all curves to BSplineCurves. Set them to the common profile. <PTol> is used to compare 2 knots.

Reimplemented in GeomFill_Generator.

◆ Poles()

void GeomFill_Profiler::Poles ( const int Index,
NCollection_Array1< gp_Pnt > & Poles ) const

returns in <Poles> the poles of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] if the length of <Poles> is not equal to NbPoles().

◆ Weights()

void GeomFill_Profiler::Weights ( const int Index,
NCollection_Array1< double > & Weights ) const

returns in <Weights> the weights of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] or if the length of <Weights> is not equal to NbPoles().

Field Documentation

◆ myIsDone

bool GeomFill_Profiler::myIsDone
protected

◆ myIsPeriodic

bool GeomFill_Profiler::myIsPeriodic
protected

◆ mySequence

NCollection_Sequence<occ::handle<Geom_Curve> > GeomFill_Profiler::mySequence
protected

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