Open CASCADE Technology  7.2.0
Public Member Functions

BRepFill_ComputeCLine Class Reference

#include <BRepFill_ComputeCLine.hxx>

Public Member Functions

 BRepFill_ComputeCLine (const BRepFill_MultiLine &Line, const Standard_Integer degreemin=3, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-5, const Standard_Real Tolerance2d=1.0e-5, const Standard_Boolean cutting=Standard_False, const AppParCurves_Constraint FirstC=AppParCurves_TangencyPoint, const AppParCurves_Constraint LastC=AppParCurves_TangencyPoint)
 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. More...
 
 BRepFill_ComputeCLine (const Standard_Integer degreemin=3, const Standard_Integer degreemax=8, const Standard_Real Tolerance3d=1.0e-05, const Standard_Real Tolerance2d=1.0e-05, const Standard_Boolean cutting=Standard_False, const AppParCurves_Constraint FirstC=AppParCurves_TangencyPoint, const AppParCurves_Constraint LastC=AppParCurves_TangencyPoint)
 Initializes the fields of the algorithm. More...
 
void Perform (const BRepFill_MultiLine &Line)
 runs the algorithm after having initialized the fields. More...
 
void SetDegrees (const Standard_Integer degreemin, const Standard_Integer degreemax)
 changes the degrees of the approximation. More...
 
void SetTolerances (const Standard_Real Tolerance3d, const Standard_Real Tolerance2d)
 Changes the tolerances of the approximation. More...
 
void SetConstraints (const AppParCurves_Constraint FirstC, const AppParCurves_Constraint LastC)
 Changes the constraints of the approximation. More...
 
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. More...
 
Standard_Boolean IsToleranceReached () const
 returns False if the status NoPointsAdded has been sent. More...
 
void Error (const Standard_Integer Index, Standard_Real &tol3d, Standard_Real &tol2d) const
 returns the tolerances 2d and 3d of the <Index> MultiCurve. More...
 
Standard_Integer NbMultiCurves () const
 Returns the number of MultiCurve doing the approximation of the MultiLine. More...
 
AppParCurves_MultiCurve Value (const Standard_Integer Index=1) const
 returns the approximation MultiCurve of range <Index>. More...
 
void Parameters (const Standard_Integer Index, Standard_Real &firstp, Standard_Real &lastp) const
 

Constructor & Destructor Documentation

◆ BRepFill_ComputeCLine() [1/2]

BRepFill_ComputeCLine::BRepFill_ComputeCLine ( const BRepFill_MultiLine Line,
const Standard_Integer  degreemin = 3,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-5,
const Standard_Real  Tolerance2d = 1.0e-5,
const Standard_Boolean  cutting = Standard_False,
const AppParCurves_Constraint  FirstC = AppParCurves_TangencyPoint,
const AppParCurves_Constraint  LastC = AppParCurves_TangencyPoint 
)

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.

◆ BRepFill_ComputeCLine() [2/2]

BRepFill_ComputeCLine::BRepFill_ComputeCLine ( const Standard_Integer  degreemin = 3,
const Standard_Integer  degreemax = 8,
const Standard_Real  Tolerance3d = 1.0e-05,
const Standard_Real  Tolerance2d = 1.0e-05,
const Standard_Boolean  cutting = Standard_False,
const AppParCurves_Constraint  FirstC = AppParCurves_TangencyPoint,
const AppParCurves_Constraint  LastC = AppParCurves_TangencyPoint 
)

Initializes the fields of the algorithm.

Member Function Documentation

◆ Error()

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

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

◆ IsAllApproximated()

Standard_Boolean BRepFill_ComputeCLine::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 BRepFill_ComputeCLine::IsToleranceReached ( ) const

returns False if the status NoPointsAdded has been sent.

◆ NbMultiCurves()

Standard_Integer BRepFill_ComputeCLine::NbMultiCurves ( ) const

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

◆ Parameters()

void BRepFill_ComputeCLine::Parameters ( const Standard_Integer  Index,
Standard_Real firstp,
Standard_Real lastp 
) const

◆ Perform()

void BRepFill_ComputeCLine::Perform ( const BRepFill_MultiLine Line)

runs the algorithm after having initialized the fields.

◆ SetConstraints()

void BRepFill_ComputeCLine::SetConstraints ( const AppParCurves_Constraint  FirstC,
const AppParCurves_Constraint  LastC 
)

Changes the constraints of the approximation.

◆ SetDegrees()

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

changes the degrees of the approximation.

◆ SetTolerances()

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

Changes the tolerances of the approximation.

◆ Value()

AppParCurves_MultiCurve BRepFill_ComputeCLine::Value ( const Standard_Integer  Index = 1) const

returns the approximation MultiCurve of range <Index>.


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