Open CASCADE Technology 7.8.0
Public Member Functions
BRepApprox_TheComputeLineBezierOfApprox Class Reference

#include <BRepApprox_TheComputeLineBezierOfApprox.hxx>

Public Member Functions

 BRepApprox_TheComputeLineBezierOfApprox (const BRepApprox_TheMultiLineOfApprox &Line, const Standard_Integer degreemin=4, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-3, const Standard_Real Tolerance2d=1.0e-6, const Standard_Integer NbIterations=5, const Standard_Boolean cutting=Standard_True, const Approx_ParametrizationType parametrization=Approx_ChordLength, const Standard_Boolean Squares=Standard_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.
 
 BRepApprox_TheComputeLineBezierOfApprox (const BRepApprox_TheMultiLineOfApprox &Line, const math_Vector &Parameters, const Standard_Integer degreemin=4, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-03, const Standard_Real Tolerance2d=1.0e-06, const Standard_Integer NbIterations=5, const Standard_Boolean cutting=Standard_True, const Standard_Boolean Squares=Standard_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.
 
 BRepApprox_TheComputeLineBezierOfApprox (const math_Vector &Parameters, const Standard_Integer degreemin=4, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-03, const Standard_Real Tolerance2d=1.0e-06, const Standard_Integer NbIterations=5, const Standard_Boolean cutting=Standard_True, const Standard_Boolean Squares=Standard_False)
 Initializes the fields of the algorithm.
 
 BRepApprox_TheComputeLineBezierOfApprox (const Standard_Integer degreemin=4, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-03, const Standard_Real Tolerance2d=1.0e-06, const Standard_Integer NbIterations=5, const Standard_Boolean cutting=Standard_True, const Approx_ParametrizationType parametrization=Approx_ChordLength, const Standard_Boolean Squares=Standard_False)
 Initializes the fields of the algorithm.
 
void Init (const Standard_Integer degreemin=4, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-03, const Standard_Real Tolerance2d=1.0e-06, const Standard_Integer NbIterations=5, const Standard_Boolean cutting=Standard_True, const Approx_ParametrizationType parametrization=Approx_ChordLength, const Standard_Boolean Squares=Standard_False)
 Initializes the fields of the algorithm.
 
void Perform (const BRepApprox_TheMultiLineOfApprox &Line)
 runs the algorithm after having initialized the fields.
 
void SetDegrees (const Standard_Integer degreemin, const Standard_Integer degreemax)
 changes the degrees of the approximation.
 
void SetTolerances (const Standard_Real Tolerance3d, const Standard_Real 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.
 
Standard_Boolean 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.
 
Standard_Boolean IsToleranceReached () const
 returns False if the status NoPointsAdded has been sent.
 
void Error (const Standard_Integer Index, Standard_Real &tol3d, Standard_Real &tol2d) const
 returns the tolerances 2d and 3d of the <Index> MultiCurve.
 
Standard_Integer NbMultiCurves () const
 Returns the number of MultiCurve doing the approximation of the MultiLine.
 
const AppParCurves_MultiCurveValue (const Standard_Integer Index=1) const
 returns the result of the approximation.
 
AppParCurves_MultiCurveChangeValue (const Standard_Integer 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 TColStd_Array1OfRealParameters (const Standard_Integer Index=1) const
 returns the new parameters of the approximation corresponding to the points of the multicurve <Index>.
 

Constructor & Destructor Documentation

◆ BRepApprox_TheComputeLineBezierOfApprox() [1/4]

BRepApprox_TheComputeLineBezierOfApprox::BRepApprox_TheComputeLineBezierOfApprox ( const BRepApprox_TheMultiLineOfApprox Line,
const Standard_Integer  degreemin = 4,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-3,
const Standard_Real  Tolerance2d = 1.0e-6,
const Standard_Integer  NbIterations = 5,
const Standard_Boolean  cutting = Standard_True,
const Approx_ParametrizationType  parametrization = Approx_ChordLength,
const Standard_Boolean  Squares = Standard_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.

◆ BRepApprox_TheComputeLineBezierOfApprox() [2/4]

BRepApprox_TheComputeLineBezierOfApprox::BRepApprox_TheComputeLineBezierOfApprox ( const BRepApprox_TheMultiLineOfApprox Line,
const math_Vector Parameters,
const Standard_Integer  degreemin = 4,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-03,
const Standard_Real  Tolerance2d = 1.0e-06,
const Standard_Integer  NbIterations = 5,
const Standard_Boolean  cutting = Standard_True,
const Standard_Boolean  Squares = Standard_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.

◆ BRepApprox_TheComputeLineBezierOfApprox() [3/4]

BRepApprox_TheComputeLineBezierOfApprox::BRepApprox_TheComputeLineBezierOfApprox ( const math_Vector Parameters,
const Standard_Integer  degreemin = 4,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-03,
const Standard_Real  Tolerance2d = 1.0e-06,
const Standard_Integer  NbIterations = 5,
const Standard_Boolean  cutting = Standard_True,
const Standard_Boolean  Squares = Standard_False 
)

Initializes the fields of the algorithm.

◆ BRepApprox_TheComputeLineBezierOfApprox() [4/4]

BRepApprox_TheComputeLineBezierOfApprox::BRepApprox_TheComputeLineBezierOfApprox ( const Standard_Integer  degreemin = 4,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-03,
const Standard_Real  Tolerance2d = 1.0e-06,
const Standard_Integer  NbIterations = 5,
const Standard_Boolean  cutting = Standard_True,
const Approx_ParametrizationType  parametrization = Approx_ChordLength,
const Standard_Boolean  Squares = Standard_False 
)

Initializes the fields of the algorithm.

Member Function Documentation

◆ ChangeValue()

AppParCurves_MultiCurve & BRepApprox_TheComputeLineBezierOfApprox::ChangeValue ( const Standard_Integer  Index = 1)

returns the result of the approximation.

◆ Error()

void BRepApprox_TheComputeLineBezierOfApprox::Error ( const Standard_Integer  Index,
Standard_Real tol3d,
Standard_Real tol2d 
) const

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

◆ Init()

void BRepApprox_TheComputeLineBezierOfApprox::Init ( const Standard_Integer  degreemin = 4,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-03,
const Standard_Real  Tolerance2d = 1.0e-06,
const Standard_Integer  NbIterations = 5,
const Standard_Boolean  cutting = Standard_True,
const Approx_ParametrizationType  parametrization = Approx_ChordLength,
const Standard_Boolean  Squares = Standard_False 
)

Initializes the fields of the algorithm.

◆ IsAllApproximated()

Standard_Boolean BRepApprox_TheComputeLineBezierOfApprox::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()

Standard_Boolean BRepApprox_TheComputeLineBezierOfApprox::IsToleranceReached ( ) const

returns False if the status NoPointsAdded has been sent.

◆ NbMultiCurves()

Standard_Integer BRepApprox_TheComputeLineBezierOfApprox::NbMultiCurves ( ) const

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

◆ Parameters()

const TColStd_Array1OfReal & BRepApprox_TheComputeLineBezierOfApprox::Parameters ( const Standard_Integer  Index = 1) const

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

◆ Parametrization()

Approx_ParametrizationType BRepApprox_TheComputeLineBezierOfApprox::Parametrization ( ) const

returns the type of parametrization

◆ Perform()

void BRepApprox_TheComputeLineBezierOfApprox::Perform ( const BRepApprox_TheMultiLineOfApprox Line)

runs the algorithm after having initialized the fields.

◆ SetConstraints()

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

changes the first and the last constraint points.

◆ SetDegrees()

void BRepApprox_TheComputeLineBezierOfApprox::SetDegrees ( const Standard_Integer  degreemin,
const Standard_Integer  degreemax 
)

changes the degrees of the approximation.

◆ SetTolerances()

void BRepApprox_TheComputeLineBezierOfApprox::SetTolerances ( const Standard_Real  Tolerance3d,
const Standard_Real  Tolerance2d 
)

Changes the tolerances of the approximation.

◆ SplineValue()

const AppParCurves_MultiBSpCurve & BRepApprox_TheComputeLineBezierOfApprox::SplineValue ( )

returns the result of the approximation.

◆ Value()

const AppParCurves_MultiCurve & BRepApprox_TheComputeLineBezierOfApprox::Value ( const Standard_Integer  Index = 1) const

returns the result of the approximation.


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