Open CASCADE Technology 7.8.2.dev
Geom2dGcc_Circ2dTanCenGeo Class Reference

This class implements the algorithms used to create 2d circles tangent to a curve and centered on a point. The arguments of all construction methods are : More...

#include <Geom2dGcc_Circ2dTanCenGeo.hxx>

Public Member Functions

 Geom2dGcc_Circ2dTanCenGeo (const Geom2dGcc_QCurve &Qualified1, const gp_Pnt2d &Pcenter, const Standard_Real Tolerance)
 This method implements the algorithms used to create 2d circles tangent to a circle and centered on a point.
 
Standard_Boolean IsDone () const
 This method returns True if the construction algorithm succeeded.
 
Standard_Integer NbSolutions () const
 Returns the number of solutions and raises NotDone exception if the algorithm didn't succeed. It raises NotDone if the construction algorithm didn't succeed.
 
gp_Circ2d ThisSolution (const Standard_Integer Index) const
 Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to these outside the context of the algorithm-object. It raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zero.
 
void WhichQualifier (const Standard_Integer Index, GccEnt_Position &Qualif1) const
 
void Tangency1 (const Standard_Integer Index, Standard_Real &ParSol, Standard_Real &ParArg, gp_Pnt2d &PntSol) const
 Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point PntSol on the solution curv. ParArg is the intrinsic parameter of the point PntArg on the argument curv. It raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zero.
 

Detailed Description

This class implements the algorithms used to create 2d circles tangent to a curve and centered on a point. The arguments of all construction methods are :

  • The qualified element for the tangency constrains (QualifiedCurv). -The center point Pcenter.
  • A real Tolerance. Tolerance is only used in the limits cases. For example : We want to create a circle tangent to an EnclosedCurv C1 with a tolerance Tolerance. If we did not use Tolerance it is impossible to find a solution in the following case : Pcenter is outside C1. With Tolerance we will give a solution if the distance between C1 and Pcenter is lower than or equal Tolerance/2.

Constructor & Destructor Documentation

◆ Geom2dGcc_Circ2dTanCenGeo()

Geom2dGcc_Circ2dTanCenGeo::Geom2dGcc_Circ2dTanCenGeo ( const Geom2dGcc_QCurve & Qualified1,
const gp_Pnt2d & Pcenter,
const Standard_Real Tolerance )

This method implements the algorithms used to create 2d circles tangent to a circle and centered on a point.

Member Function Documentation

◆ IsDone()

Standard_Boolean Geom2dGcc_Circ2dTanCenGeo::IsDone ( ) const

This method returns True if the construction algorithm succeeded.

◆ NbSolutions()

Standard_Integer Geom2dGcc_Circ2dTanCenGeo::NbSolutions ( ) const

Returns the number of solutions and raises NotDone exception if the algorithm didn't succeed. It raises NotDone if the construction algorithm didn't succeed.

◆ Tangency1()

void Geom2dGcc_Circ2dTanCenGeo::Tangency1 ( const Standard_Integer Index,
Standard_Real & ParSol,
Standard_Real & ParArg,
gp_Pnt2d & PntSol ) const

Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point PntSol on the solution curv. ParArg is the intrinsic parameter of the point PntArg on the argument curv. It raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zero.

◆ ThisSolution()

gp_Circ2d Geom2dGcc_Circ2dTanCenGeo::ThisSolution ( const Standard_Integer Index) const

Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to these outside the context of the algorithm-object. It raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zero.

◆ WhichQualifier()

void Geom2dGcc_Circ2dTanCenGeo::WhichQualifier ( const Standard_Integer Index,
GccEnt_Position & Qualif1 ) const

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