![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
This class implements the algorithms used to create 2d circles tangent to one curve and a point/line/circle/curv and with a given radius. For each construction methods arguments are: More...
#include <Geom2dGcc_Circ2d2TanRad.hxx>
Public Member Functions | |
| Geom2dGcc_Circ2d2TanRad (const Geom2dGcc_QualifiedCurve &Qualified1, const Geom2dGcc_QualifiedCurve &Qualified2, const double Radius, const double Tolerance) | |
| Geom2dGcc_Circ2d2TanRad (const Geom2dGcc_QualifiedCurve &Qualified1, const occ::handle< Geom2d_Point > &Point, const double Radius, const double Tolerance) | |
| Geom2dGcc_Circ2d2TanRad (const occ::handle< Geom2d_Point > &Point1, const occ::handle< Geom2d_Point > &Point2, const double Radius, const double Tolerance) | |
| These constructors create one or more 2D circles of radius Radius either. | |
| void | Results (const GccAna_Circ2d2TanRad &Circ) |
| void | Results (const Geom2dGcc_Circ2d2TanRadGeo &Circ) |
| bool | IsDone () const |
| This method returns True if the algorithm succeeded. Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits. | |
| int | NbSolutions () const |
| This method returns the number of solutions. NotDone is raised if the algorithm failed. Exceptions StdFail_NotDone if the construction fails. | |
| 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. Warning This indexing simply provides a means of consulting the solutions. The index values are not associated with these solutions outside the context of the algorithm object. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails. | |
| void | WhichQualifier (const int Index, GccEnt_Position &Qualif1, GccEnt_Position &Qualif2) const |
| Returns the qualifiers Qualif1 and Qualif2 of the tangency arguments for the solution of index Index computed by this algorithm. The returned qualifiers are: | |
| 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 PntSol on the argument curv. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed. | |
| void | Tangency2 (const int Index, double &ParSol, double &ParArg, gp_Pnt2d &PntSol) const |
| Returns information about the tangency point between the result number Index and the second argument. ParSol is the intrinsic parameter of the point PntSol on the solution curv. ParArg is the intrinsic parameter of the point PntSol on the argument curv. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed. | |
| bool | IsTheSame1 (const int Index) const |
| Returns true if the solution of index Index and, respectively, the first or second argument of this algorithm are the same (i.e. there are 2 identical circles). If Rarg is the radius of the first or second argument, Rsol is the radius of the solution and dist is the distance between the two centers, we consider the two circles to be identical if |Rarg - Rsol| and dist are less than or equal to the tolerance criterion given at the time of construction of this algorithm. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed. | |
| bool | IsTheSame2 (const int Index) const |
| Returns true if the solution of index Index and, respectively, the first or second argument of this algorithm are the same (i.e. there are 2 identical circles). If Rarg is the radius of the first or second argument, Rsol is the radius of the solution and dist is the distance between the two centers, we consider the two circles to be identical if |Rarg - Rsol| and dist are less than or equal to the tolerance criterion given at the time of construction of this algorithm. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed. | |
This class implements the algorithms used to create 2d circles tangent to one curve and a point/line/circle/curv and with a given radius. For each construction methods arguments are:
| Geom2dGcc_Circ2d2TanRad::Geom2dGcc_Circ2d2TanRad | ( | const Geom2dGcc_QualifiedCurve & | Qualified1, |
| const Geom2dGcc_QualifiedCurve & | Qualified2, | ||
| const double | Radius, | ||
| const double | Tolerance ) |
| Geom2dGcc_Circ2d2TanRad::Geom2dGcc_Circ2d2TanRad | ( | const Geom2dGcc_QualifiedCurve & | Qualified1, |
| const occ::handle< Geom2d_Point > & | Point, | ||
| const double | Radius, | ||
| const double | Tolerance ) |
| Geom2dGcc_Circ2d2TanRad::Geom2dGcc_Circ2d2TanRad | ( | const occ::handle< Geom2d_Point > & | Point1, |
| const occ::handle< Geom2d_Point > & | Point2, | ||
| const double | Radius, | ||
| const double | Tolerance ) |
These constructors create one or more 2D circles of radius Radius either.
| bool Geom2dGcc_Circ2d2TanRad::IsDone | ( | ) | const |
This method returns True if the algorithm succeeded. Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits.
Returns true if the solution of index Index and, respectively, the first or second argument of this algorithm are the same (i.e. there are 2 identical circles). If Rarg is the radius of the first or second argument, Rsol is the radius of the solution and dist is the distance between the two centers, we consider the two circles to be identical if |Rarg - Rsol| and dist are less than or equal to the tolerance criterion given at the time of construction of this algorithm. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed.
Returns true if the solution of index Index and, respectively, the first or second argument of this algorithm are the same (i.e. there are 2 identical circles). If Rarg is the radius of the first or second argument, Rsol is the radius of the solution and dist is the distance between the two centers, we consider the two circles to be identical if |Rarg - Rsol| and dist are less than or equal to the tolerance criterion given at the time of construction of this algorithm. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed.
| int Geom2dGcc_Circ2d2TanRad::NbSolutions | ( | ) | const |
This method returns the number of solutions. NotDone is raised if the algorithm failed. Exceptions StdFail_NotDone if the construction fails.
| void Geom2dGcc_Circ2d2TanRad::Results | ( | const GccAna_Circ2d2TanRad & | Circ | ) |
| void Geom2dGcc_Circ2d2TanRad::Results | ( | const Geom2dGcc_Circ2d2TanRadGeo & | Circ | ) |
| void Geom2dGcc_Circ2d2TanRad::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 PntSol on the argument curv. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed.
| void Geom2dGcc_Circ2d2TanRad::Tangency2 | ( | const int | Index, |
| double & | ParSol, | ||
| double & | ParArg, | ||
| gp_Pnt2d & | PntSol ) const |
Returns information about the tangency point between the result number Index and the second argument. ParSol is the intrinsic parameter of the point PntSol on the solution curv. ParArg is the intrinsic parameter of the point PntSol on the argument curv. OutOfRange is raised if Index is greater than the number of solutions. notDone is raised if the construction algorithm did not succeed.
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. Warning This indexing simply provides a means of consulting the solutions. The index values are not associated with these solutions outside the context of the algorithm object. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails.
| void Geom2dGcc_Circ2d2TanRad::WhichQualifier | ( | const int | Index, |
| GccEnt_Position & | Qualif1, | ||
| GccEnt_Position & | Qualif2 ) const |
Returns the qualifiers Qualif1 and Qualif2 of the tangency arguments for the solution of index Index computed by this algorithm. The returned qualifiers are: