OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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 double Tolerance)
     This method implements the algorithms used to create 2d circles tangent to a circle and centered on a point.
    bool IsDone () const
     This method returns True if the construction algorithm succeeded.
    int 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 int 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 int Index, GccEnt_Position &Qualif1) const
    void Tangency1 (const int Index, double &ParSol, double &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 double Tolerance )

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

    Member Function Documentation

    ◆ IsDone()

    bool Geom2dGcc_Circ2dTanCenGeo::IsDone ( ) const

    This method returns True if the construction algorithm succeeded.

    ◆ NbSolutions()

    int 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 int Index,
    double & ParSol,
    double & 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 int 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 int Index,
    GccEnt_Position & Qualif1 ) const

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