Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
AppDef_Compute Class Reference

#include <AppDef_Compute.hxx>

Public Member Functions

 AppDef_Compute (const AppDef_MultiLine &Line, const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-3, const double Tolerance2d=1.0e-6, const int NbIterations=5, const bool cutting=true, const Approx_ParametrizationType parametrization=Approx_ChordLength, const bool Squares=false)
 The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.
 
 AppDef_Compute (const AppDef_MultiLine &Line, const math_Vector &Parameters, const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const bool Squares=false)
 The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.
 
 AppDef_Compute (const math_Vector &Parameters, const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const bool Squares=false)
 Initializes the fields of the algorithm.
 
 AppDef_Compute (const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const Approx_ParametrizationType parametrization=Approx_ChordLength, const bool Squares=false)
 Initializes the fields of the algorithm.
 
void Init (const int degreemin=4, const int degreemax=8, const double Tolerance3d=1.0e-03, const double Tolerance2d=1.0e-06, const int NbIterations=5, const bool cutting=true, const Approx_ParametrizationType parametrization=Approx_ChordLength, const bool Squares=false)
 Initializes the fields of the algorithm.
 
void Perform (const AppDef_MultiLine &Line)
 runs the algorithm after having initialized the fields.
 
void SetDegrees (const int degreemin, const int degreemax)
 changes the degrees of the approximation.
 
void SetTolerances (const double Tolerance3d, const double Tolerance2d)
 Changes the tolerances of the approximation.
 
void SetConstraints (const AppParCurves_Constraint firstC, const AppParCurves_Constraint lastC)
 changes the first and the last constraint points.
 
bool IsAllApproximated () const
 returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
 
bool IsToleranceReached () const
 returns False if the status NoPointsAdded has been sent.
 
void Error (const int Index, double &tol3d, double &tol2d) const
 returns the tolerances 2d and 3d of the <Index> MultiCurve.
 
int NbMultiCurves () const
 Returns the number of MultiCurve doing the approximation of the MultiLine.
 
const AppParCurves_MultiCurveValue (const int Index=1) const
 returns the result of the approximation.
 
AppParCurves_MultiCurveChangeValue (const int Index=1)
 returns the result of the approximation.
 
const AppParCurves_MultiBSpCurveSplineValue ()
 returns the result of the approximation.
 
Approx_ParametrizationType Parametrization () const
 returns the type of parametrization
 
const NCollection_Array1< double > & Parameters (const int Index=1) const
 returns the new parameters of the approximation corresponding to the points of the multicurve <Index>.
 

Constructor & Destructor Documentation

◆ AppDef_Compute() [1/4]

AppDef_Compute::AppDef_Compute ( const AppDef_MultiLine & Line,
const int degreemin = 4,
const int degreemax = 8,
const double Tolerance3d = 1.0e-3,
const double Tolerance2d = 1.0e-6,
const int NbIterations = 5,
const bool cutting = true,
const Approx_ParametrizationType parametrization = Approx_ChordLength,
const bool Squares = false )

The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

◆ AppDef_Compute() [2/4]

AppDef_Compute::AppDef_Compute ( const AppDef_MultiLine & Line,
const math_Vector & Parameters,
const int degreemin = 4,
const int degreemax = 8,
const double Tolerance3d = 1.0e-03,
const double Tolerance2d = 1.0e-06,
const int NbIterations = 5,
const bool cutting = true,
const bool Squares = false )

The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

◆ AppDef_Compute() [3/4]

AppDef_Compute::AppDef_Compute ( const math_Vector & Parameters,
const int degreemin = 4,
const int degreemax = 8,
const double Tolerance3d = 1.0e-03,
const double Tolerance2d = 1.0e-06,
const int NbIterations = 5,
const bool cutting = true,
const bool Squares = false )

Initializes the fields of the algorithm.

◆ AppDef_Compute() [4/4]

AppDef_Compute::AppDef_Compute ( const int degreemin = 4,
const int degreemax = 8,
const double Tolerance3d = 1.0e-03,
const double Tolerance2d = 1.0e-06,
const int NbIterations = 5,
const bool cutting = true,
const Approx_ParametrizationType parametrization = Approx_ChordLength,
const bool Squares = false )

Initializes the fields of the algorithm.

Member Function Documentation

◆ ChangeValue()

AppParCurves_MultiCurve & AppDef_Compute::ChangeValue ( const int Index = 1)

returns the result of the approximation.

◆ Error()

void AppDef_Compute::Error ( const int Index,
double & tol3d,
double & tol2d ) const

returns the tolerances 2d and 3d of the <Index> MultiCurve.

◆ Init()

void AppDef_Compute::Init ( const int degreemin = 4,
const int degreemax = 8,
const double Tolerance3d = 1.0e-03,
const double Tolerance2d = 1.0e-06,
const int NbIterations = 5,
const bool cutting = true,
const Approx_ParametrizationType parametrization = Approx_ChordLength,
const bool Squares = false )

Initializes the fields of the algorithm.

◆ IsAllApproximated()

bool AppDef_Compute::IsAllApproximated ( ) const

returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.

◆ IsToleranceReached()

bool AppDef_Compute::IsToleranceReached ( ) const

returns False if the status NoPointsAdded has been sent.

◆ NbMultiCurves()

int AppDef_Compute::NbMultiCurves ( ) const

Returns the number of MultiCurve doing the approximation of the MultiLine.

◆ Parameters()

const NCollection_Array1< double > & AppDef_Compute::Parameters ( const int Index = 1) const

returns the new parameters of the approximation corresponding to the points of the multicurve <Index>.

◆ Parametrization()

Approx_ParametrizationType AppDef_Compute::Parametrization ( ) const

returns the type of parametrization

◆ Perform()

void AppDef_Compute::Perform ( const AppDef_MultiLine & Line)

runs the algorithm after having initialized the fields.

◆ SetConstraints()

void AppDef_Compute::SetConstraints ( const AppParCurves_Constraint firstC,
const AppParCurves_Constraint lastC )

changes the first and the last constraint points.

◆ SetDegrees()

void AppDef_Compute::SetDegrees ( const int degreemin,
const int degreemax )

changes the degrees of the approximation.

◆ SetTolerances()

void AppDef_Compute::SetTolerances ( const double Tolerance3d,
const double Tolerance2d )

Changes the tolerances of the approximation.

◆ SplineValue()

const AppParCurves_MultiBSpCurve & AppDef_Compute::SplineValue ( )

returns the result of the approximation.

◆ Value()

const AppParCurves_MultiCurve & AppDef_Compute::Value ( const int Index = 1) const

returns the result of the approximation.


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