![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
#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_MultiCurve & | Value (const int Index=1) const |
| returns the result of the approximation. | |
| AppParCurves_MultiCurve & | ChangeValue (const int Index=1) |
| returns the result of the approximation. | |
| const AppParCurves_MultiBSpCurve & | SplineValue () |
| 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>. | |
| 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::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::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::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.
| AppParCurves_MultiCurve & AppDef_Compute::ChangeValue | ( | const int | Index = 1 | ) |
returns the result of the approximation.
returns the tolerances 2d and 3d of the <Index> MultiCurve.
| 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.
| 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.
| bool AppDef_Compute::IsToleranceReached | ( | ) | const |
returns False if the status NoPointsAdded has been sent.
| int AppDef_Compute::NbMultiCurves | ( | ) | const |
Returns the number of MultiCurve doing the approximation of the MultiLine.
| 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>.
| Approx_ParametrizationType AppDef_Compute::Parametrization | ( | ) | const |
returns the type of parametrization
| void AppDef_Compute::Perform | ( | const AppDef_MultiLine & | Line | ) |
runs the algorithm after having initialized the fields.
| void AppDef_Compute::SetConstraints | ( | const AppParCurves_Constraint | firstC, |
| const AppParCurves_Constraint | lastC ) |
changes the first and the last constraint points.
changes the degrees of the approximation.
Changes the tolerances of the approximation.
| const AppParCurves_MultiBSpCurve & AppDef_Compute::SplineValue | ( | ) |
returns the result of the approximation.
| const AppParCurves_MultiCurve & AppDef_Compute::Value | ( | const int | Index = 1 | ) | const |
returns the result of the approximation.