OCC.Core.Geom2dGcc module¶
Geom2dGcc module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_geom2dgcc.html
-
class
Geom2dGcc_Circ2d2TanOn
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles TANgent to two curves and having the center ON a 2d curve. Param1 is the initial guess on the first curve QualifiedCurv. Param1 is the initial guess on the second curve QualifiedCurv. ParamOn is the initial guess on the center curve OnCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QualifiedCurve
- param OnCurve
- type OnCurve
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param ParamOn
- type ParamOn
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to one curve and one point and having the center ON a 2d curve. Param1 is the initial guess on the first curve QualifiedCurv. ParamOn is the initial guess on the center curve OnCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Point
- type Point
Geom2d_Point
- param OnCurve
- type OnCurve
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- param Param1
- type Param1
float
- param ParamOn
- type ParamOn
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two points and having the center ON a 2d curve. Tolerance is used for the limit cases.
- param Point1
- type Point1
Geom2d_Point
- param Point2
- type Point2
Geom2d_Point
- param OnCurve
- type OnCurve
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None
-
CenterOn3
()¶ - Returns the center PntSol of the solution of index Index computed by this algorithm. ParArg is the parameter of the point PntSol on the third argument. 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.
- param Index
- type Index
int
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits.
- rtype
bool
-
IsTheSame1
()¶ - 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. 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.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - 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. 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.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. NotDone is raised if the algorithm failed.
- rtype
int
-
Results
()¶ - Parameters
Circ –
- type Circ
GccAna_Circ2d2TanOn
- rtype
None:param Circ:
- type Circ
Geom2dGcc_Circ2d2TanOnGeo
- rtype
None
-
Tangency1
()¶ - Returns informations about the tangency point between the result 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns informations about the tangency point between the result 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be carefull: the Index is only a way to get all the solutions, but is not associated to theses outside the context of the algorithm-object. Exceptions Standard_OutOfRange if Index is less than or equal to zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - It returns the informations about the qualifiers of the tangency arguments concerning the solution number Index. It returns the real qualifiers (the qualifiers given to the constructor method in case of enclosed, enclosing and outside and the qualifiers computedin case of unqualified). 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.
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2d2TanOnGeo
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles TANgent to two 2d circles and having the center ON a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d circle and a 2d line having the center ON a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d circle and a point having the center ON a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Point2
- type Point2
gp_Pnt2d
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two 2d lines having the center ON a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d line and a point having the center ON a 2d line.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
gp_Pnt2d
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two points having the center ON a 2d line.
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Tolerance
- type Tolerance
float
- rtype
None
-
CenterOn3
()¶ - Returns informations about the center (on the curv) of the result. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the center point of the solution curv. It raises NotDone if the construction algorithm didn’t succeed. It raises OutOfRange if Index is greater than the number of solutions.
- param Index
- type Index
int
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - This method returns True if the construction algorithm succeeded.
- rtype
bool
-
IsTheSame1
()¶ - Returns True if the solution number Index is equal to the first argument and False in the other cases. It raises NotDone if the construction algorithm didn’t succeed. It raises OutOfRange if Index is greater than the number of solutions.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - Returns True if the solution number Index is equal to the second argument and False in the other cases. It raises NotDone if the construction algorithm didn’t succeed. It raises OutOfRange if Index is greater than the number of solutions.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. It raises NotDone if the construction algorithm didn’t succeed.
- rtype
int
-
Tangency1
()¶ - Returns informations about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the tangency point on the solution curv. PntArg is the tangency point 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns informations about the tangency point between the result number Index and the second argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the tangency point on the solution curv. PntArg is the tangency point 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - 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 those 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.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - It returns the informations about the qualifiers of the tangency arguments concerning the solution number Index. It returns the real qualifiers (the qualifiers given to the constructor method in case of enclosed, enclosing and outside and the qualifiers computedin case of unqualified).
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2d2TanOnIter
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles TANgent to a 2d circle and a curve and having the center ON a 2d line. Param2 is the initial guess on the curve QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnLine
- type OnLine
gp_Lin2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d line and a curve and having the center ON a 2d line. Param2 is the initial guess on the curve QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnLine
- type OnLine
gp_Lin2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two curves and having the center ON a 2d line. Param1 is the initial guess on the first QualifiedCurv. Param2 is the initial guess on the first QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnLine
- type OnLine
gp_Lin2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d point and a curve and having the center ON a 2d line. Param2 is the initial guess on the curve QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Point2
- type Point2
gp_Pnt2d
- param OnLine
- type OnLine
gp_Lin2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d circle and a curve and having the center ON a 2d circle. Param2 is the initial guess on the curve QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnCirc
- type OnCirc
gp_Circ2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d line and a curve and having the center ON a 2d circle. Param2 is the initial guess on the curve QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnCirc
- type OnCirc
gp_Circ2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two curves and having the center ON a 2d circle. Param1 is the initial guess on the first QualifiedCurv. Param2 is the initial guess on the first QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnCirc
- type OnCirc
gp_Circ2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d point and a curve and having the center ON a 2d circle. Param2 is the initial guess on the curve QualifiedCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Point2
- type Point2
gp_Pnt2d
- param OnCirc
- type OnCirc
gp_Circ2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d circle and a curve and having the center ON a 2d curve. Param2 is the initial guess on the curve QualifiedCurv. ParamOn is the initial guess on the center curve OnCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param ParamOn
- type ParamOn
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d line and a curve and having the center ON a 2d curve. Param2 is the initial guess on the curve QualifiedCurv. ParamOn is the initial guess on the center curve OnCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnCurve
- type OnCurve
Geom2dAdaptor_Curve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param ParamOn
- type ParamOn
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d Point and a curve and having the center ON a 2d curve. Param1 is the initial guess on the curve QualifiedCurv. ParamOn is the initial guess on the center curve OnCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Point2
- type Point2
gp_Pnt2d
- param OnCurve
- type OnCurve
Geom2dAdaptor_Curve
- param Param1
- type Param1
float
- param ParamOn
- type ParamOn
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two curves and having the center ON a 2d curve. Param1 is the initial guess on the first curve QualifiedCurv. Param1 is the initial guess on the second curve QualifiedCurv. ParamOn is the initial guess on the center curve OnCurv. Tolerance is used for the limit cases.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param OnCurve
- type OnCurve
Geom2dAdaptor_Curve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param ParamOn
- type ParamOn
float
- param Tolerance
- type Tolerance
float
- rtype
None
-
CenterOn3
()¶ - Returns information about the center (on the curv) of the result and the third argument. It raises NotDone if the construction algorithm didn’t succeed.
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - This method returns True if the construction algorithm succeeded.
- rtype
bool
-
IsTheSame1
()¶ - It raises NotDone if the construction algorithm didn’t succeed.
- rtype
bool
-
IsTheSame2
()¶ - It raises NotDone if the construction algorithm didn’t succeed.
- rtype
bool
-
Tangency1
()¶ - Returns information about the tangency point between the result 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. It raises NotDone if the construction algorithm didn’t succeed.
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns information about the tangency point between the result 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. It raises NotDone if the construction algorithm didn’t succeed.
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution. It raises NotDone if the construction algorithm didn’t succeed.
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Parameters
Qualif1 –
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2d2TanRad
(*args)¶ Bases:
object
- Parameters
Qualified1 –
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QualifiedCurve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None:param Qualified1:
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Point
- type Point
Geom2d_Point
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* These constructors create one or more 2D circles of radius Radius either - tangential to the 2 curves Qualified1 and Qualified2, or - tangential to the curve Qualified1 and passing through the point Point, or - passing through two points Point1 and Point2. Tolerance is a tolerance criterion used by the algorithm to find a solution when, mathematically, the problem posed does not have a solution, but where there is numeric uncertainty attached to the arguments. For example, take two circles C1 and C2, such that C2 is inside C1, and almost tangential to C1. There is, in fact, no point of intersection between C1 and C2. You now want to find a circle of radius R (smaller than the radius of C2), which is tangential to C1 and C2, and inside these two circles: a pure mathematical resolution will not find a solution. This is where the tolerance criterion is used: the algorithm considers that C1 and C2 are tangential if the shortest distance between these two circles is less than or equal to Tolerance. Thus, a solution is found by the algorithm. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosing for a line). Standard_NegativeValue if Radius is negative.
- param Point1
- type Point1
Geom2d_Point
- param Point2
- type Point2
Geom2d_Point
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - 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.
- rtype
bool
-
IsTheSame1
()¶ - 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.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - 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.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. NotDone is raised if the algorithm failed. Exceptions StdFail_NotDone if the construction fails.
- rtype
int
-
Results
()¶ - Parameters
Circ –
- type Circ
GccAna_Circ2d2TanRad
- rtype
None:param Circ:
- type Circ
Geom2dGcc_Circ2d2TanRadGeo
- rtype
None
-
Tangency1
()¶ - Returns informations 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns informations 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be carefull: the Index is only a way to get all the solutions, but is not associated to theses 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.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Returns the qualifiers Qualif1 and Qualif2 of the tangency arguments for the solution of index Index computed by this algorithm. The returned qualifiers are: - those specified at the start of construction when the solutions are defined as enclosed, enclosing or outside with respect to the arguments, or - those computed during construction (i.e. enclosed, enclosing or outside) when the solutions are defined as unqualified with respect to the arguments, or - GccEnt_noqualifier if the tangency argument is a point, or - GccEnt_unqualified in certain limit cases where it is impossible to qualify the solution as enclosed, enclosing or outside. 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.
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2d2TanRadGeo
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles TANgent to a 2d circle and a curve with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a 2d line and a curve with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two curves with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a curve and a point with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Point2
- type Point2
gp_Pnt2d
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - This method returns True if the algorithm succeeded.
- rtype
bool
-
IsTheSame1
()¶ - Returns True if the solution number Index is equal to the first argument. It raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the construction algorithm did not succeed.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - Returns True if the solution number Index is equal to the second argument. It raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the construction algorithm did not succeed.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. It raises NotDone if the algorithm failed.
- rtype
int
-
Tangency1
()¶ - 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. ParArg is the intrinsic parameter of the point PntSol on the first argument. It raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the construction algorithm did not succeed.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - 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. ParArg is the intrinsic parameter of the point PntArg on the second argument. It raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the construction algorithm did not succeed.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution number Index. Be careful: the Index is only a way to get all the solutions, but is not associated to those outside the context of the algorithm-object. It raises OutOfRange exception if Index is greater than the number of solutions. It raises NotDone if the construction algorithm did not succeed.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - It returns the information about the qualifiers of the tangency arguments concerning the solution number Index. It returns the real qualifiers (the qualifiers given to the constructor method in case of enclosed, enclosing and outside and the qualifiers computedin case of unqualified).
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2d3Tan
(*args)¶ Bases:
object
- Constructs one or more 2D circles tangential to three curves Qualified1, Qualified2 and Qualified3, where Param1, Param2 and Param3 are used, respectively, as the initial values of the parameters on Qualified1, Qualified2 and Qualified3 of the tangency point between these arguments and the solution sought, if the algorithm chooses an iterative method to find the solution (i.e. if either Qualified1, Qualified2 or Qualified3 is more complex than a line or a circle).
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QualifiedCurve
- param Qualified3
- type Qualified3
Geom2dGcc_QualifiedCurve
- param Tolerance
- type Tolerance
float
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- rtype
None* Constructs one or more 2D circles tangential to two curves Qualified1 and Qualified2 and passing through the point Point, where Param1 and Param2 are used, respectively, as the initial values of the parameters on Qualified1 and Qualified2 of the tangency point between this argument and the solution sought, if the algorithm chooses an iterative method to find the solution (i.e. if either Qualified1 or Qualified2 is more complex than a line or a circle).
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QualifiedCurve
- param Point
- type Point
Geom2d_Point
- param Tolerance
- type Tolerance
float
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- rtype
None* Constructs one or more 2D circles tangential to the curve Qualified1 and passing through two points Point1 and Point2, where Param1 is used as the initial value of the parameter on Qualified1 of the tangency point between this argument and the solution sought, if the algorithm chooses an iterative method to find the solution (i.e. if Qualified1 is more complex than a line or a circle)
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Point1
- type Point1
Geom2d_Point
- param Point2
- type Point2
Geom2d_Point
- param Tolerance
- type Tolerance
float
- param Param1
- type Param1
float
- rtype
None* Constructs one or more 2D circles passing through three points Point1, Point2 and Point3. Tolerance is a tolerance criterion used by the algorithm to find a solution when, mathematically, the problem posed does not have a solution, but where there is numeric uncertainty attached to the arguments. For example, take: - two circles C1 and C2, such that C2 is inside C1, and almost tangential to C1; there is in fact no point of intersection between C1 and C2; and - a circle C3 outside C1. You now want to find a circle which is tangential to C1, C2 and C3: a pure mathematical resolution will not find a solution. This is where the tolerance criterion is used: the algorithm considers that C1 and C2 are tangential if the shortest distance between these two circles is less than or equal to Tolerance. Thus, the algorithm finds a solution. Warning An iterative algorithm is used if Qualified1, Qualified2 or Qualified3 is more complex than a line or a circle. In such cases, the algorithm constructs only one solution. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosing for a line).
- param Point1
- type Point1
Geom2d_Point
- param Point2
- type Point2
Geom2d_Point
- param Point3
- type Point3
Geom2d_Point
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits.
- rtype
bool
-
IsTheSame1
()¶ - Returns True if the solution is equal to the first argument.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - Returns True if the solution is equal to the second argument.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame3
()¶ - Returns True if the solution is equal to the third argument. If Rarg is the radius of the first, second or third 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. 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.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. NotDone is raised if the algorithm failed.
- rtype
int
-
Results
()¶ - Parameters
Circ –
- type Circ
GccAna_Circ2d3Tan
- param Rank1
- type Rank1
int
- param Rank2
- type Rank2
int
- param Rank3
- type Rank3
int
- rtype
None
-
Tangency1
()¶ - Returns informations about the tangency point between the result 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns informations about the tangency point between the result 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency3
()¶ - Returns informations about the tangency point between the result and the third 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be carefull: the Index is only a way to get all the solutions, but is not associated to theses outside the context of the algorithm-object.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - It returns the informations about the qualifiers of the tangency arguments concerning the solution number Index. It returns the real qualifiers (the qualifiers given to the constructor method in case of enclosed, enclosing and outside and the qualifiers computedin case of unqualified).
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- param Qualif3
- type Qualif3
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2d3TanIter
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles tangent to 2 circles and a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param Qualified3
- type Qualified3
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a circle and 2 curves.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Qualified3
- type Qualified3
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a circle and a line and a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Qualified3
- type Qualified3
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a circle and a point and a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Point3
- type Point3
gp_Pnt2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 2 lines and a curve.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Qualified3
- type Qualified3
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a line and 2 curves.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Qualified3
- type Qualified3
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a line and a curve and a point.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Point3
- type Point3
gp_Pnt2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a curve and 2 points.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- param Param1
- type Param1
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 2 curves and a point.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Point2
- type Point2
gp_Pnt2d
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 3 curves.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Qualified3
- type Qualified3
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Param3
- type Param3
float
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - This method returns True if the construction algorithm succeeded.
- rtype
bool
-
IsTheSame1
()¶ - It raises NotDone if the construction algorithm didn’t succeed.
- rtype
bool
-
IsTheSame2
()¶ - It raises NotDone if the construction algorithm didn’t succeed.
- rtype
bool
-
IsTheSame3
()¶ - It raises NotDone if the construction algorithm didn’t succeed.
- rtype
bool
-
Tangency1
()¶ - Returns informations about the tangency point between the result 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. It raises NotDone if the construction algorithm didn’t succeed.
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns informations about the tangency point between the result 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. It raises NotDone if the construction algorithm didn’t succeed.
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency3
()¶ - Returns informations about the tangency point between the result and the third 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. It raises NotDone if the construction algorithm didn’t succeed.
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution. It raises NotDone if the construction algorithm didn’t succeed.
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Parameters
Qualif1 –
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- param Qualif3
- type Qualif3
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2dTanCen
(*args)¶ Bases:
object
- Constructs one or more 2D circles tangential to the curve Qualified1 and centered on the point Pcenter. Tolerance is a tolerance criterion used by the algorithm to find a solution when, mathematically, the problem posed does not have a solution, but where there is numeric uncertainty attached to the arguments. Tolerance is only used in these algorithms in very specific cases where the center of the solution is very close to the circle to which it is tangential, and where the solution is thus a very small circle. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosing for a line).
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Pcenter
- type Pcenter
Geom2d_Point
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits.
- rtype
bool
-
IsTheSame1
()¶ - Returns true if the solution of index Index and the first argument of this algorithm are the same (i.e. there are 2 identical circles). If Rarg is the radius of the first 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. NotDone is raised if the construction algorithm didn’t succeed. OutOfRange is raised if Index is greater than the number of solutions.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - Returns the number of circles, representing solutions computed by this algorithm. Exceptions StdFail_NotDone if the construction fails.
- rtype
int
-
Tangency1
()¶ - Returns informations 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. 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns a circle, representing the solution of index Index computed by this algorithm. 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
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosed, enclosing or outside with respect to the argument, or - that computed during construction (i.e. enclosed, enclosing or outside) when the solutions are defined as unqualified with respect to the argument. 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.
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2dTanCenGeo
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles tangent to a circle and centered on a point.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Pcenter
- type Pcenter
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - This method returns True if the construction algorithm succeeded.
- rtype
bool
-
NbSolutions
()¶ - 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.
- rtype
int
-
Tangency1
()¶ - Returns informations 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be carefull: the Index is only a way to get all the solutions, but is not associated to theses 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.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Parameters
Index –
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2dTanOnRad
(*args)¶ Bases:
object
- Constructs one or more 2D circles of radius Radius, centered on the 2D curve OnCurv and: - tangential to the curve Qualified1
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* Constructs one or more 2D circles of radius Radius, centered on the 2D curve OnCurv and: passing through the point Point1. OnCurv is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by the construction algorithm. Similarly, the qualified curve Qualified1 is created from an adapted curve. Adapted curves are created in the following way: opencascade::handle<Geom2d_Curve> myCurveOn = … ; Geom2dAdaptor_Curve OnCurv ( myCurveOn ) ; The algorithm is then constructed with this object: opencascade::handle<Geom2d_Curve> myCurve1 = … ; Geom2dAdaptor_Curve Adapted1 ( myCurve1 ) ; Geom2dGcc_QualifiedCurve Qualified1 = Geom2dGcc::Outside(Adapted1); Standard_Real Radius = … , Tolerance = … ; Geom2dGcc_Circ2dTanOnRad myAlgo ( Qualified1 , OnCurv , Radius , Tolerance ) ; if ( myAlgo.IsDone() ) { Standard_Integer Nbr = myAlgo.NbSolutions() ; gp_Circ2d Circ ; for ( Standard_Integer i = 1 ; i <= nbr ; i++ ) { Circ = myAlgo.ThisSolution (i) ; … } }
- param Point1
- type Point1
Geom2d_Point
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None
-
CenterOn3
()¶ - Returns the center PntSol on the second argument (i.e. line or circle) of the solution of index Index computed by this algorithm. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the center point of the solution curv. PntArg is the projection of PntSol on the argument curv. 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.
- param Index
- type Index
int
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm which has reached its numeric limits.
- rtype
bool
-
IsTheSame1
()¶ - Returns true if the solution of index Index and the first argument of this algorithm are the same (i.e. there are 2 identical circles). If Rarg is the radius of the first 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.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - Returns the number of circles, representing solutions computed by this algorithm. Exceptions: StdFail_NotDone if the construction fails.
- rtype
int
-
Results
()¶ - Parameters
Circ –
- type Circ
GccAna_Circ2dTanOnRad
- rtype
None:param Circ:
- type Circ
Geom2dGcc_Circ2dTanOnRadGeo
- rtype
None
-
Tangency1
()¶ - Returns informations about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the tangency point on the solution curv. PntArg is the tangency point on the argument curv. 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be carefull: the Index is only a way to get all the solutions, but is not associated to theses 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.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosed, enclosing or outside with respect to the arguments, or - that computed during construction (i.e. enclosed, enclosing or outside) when the solutions are defined as unqualified with respect to the arguments, or - GccEnt_noqualifier if the tangency argument is a point. 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.
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Circ2dTanOnRadGeo
(*args)¶ Bases:
object
- This methods implements the algorithms used to create 2d Circles tangent to a curve and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param OnLine
- type OnLine
gp_Lin2d
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d Circles tangent to a curve and centered on a 2d Circle with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param OnCirc
- type OnCirc
gp_Circ2d
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d Circles tangent to a circle and centered on a 2d curve with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d Circles tangent to a 2d Line and centered on a 2d curve with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d Circles tangent to a 2d curve and centered on a 2d curve with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d Circles passing through a 2d point and centered on a 2d curve with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius.
- param Point1
- type Point1
gp_Pnt2d
- param OnCurv
- type OnCurv
Geom2dAdaptor_Curve
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None
-
CenterOn3
()¶ - Returns informations about the center (on the curv) of the result. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the center point of the solution curv. It raises NotDone if the construction algorithm didn’t succeed. It raises OutOfRange if Index is greater than the number of solutions.
- param Index
- type Index
int
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - This method returns True if the construction algorithm succeeded.
- rtype
bool
-
IsTheSame1
()¶ - Returns True if the solution number Index is equal to the first argument and False in the other cases. It raises NotDone if the construction algorithm didn’t succeed. It raises OutOfRange if Index is greater than the number of solutions.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. It raises NotDone if the construction algorithm didn’t succeed.
- rtype
int
-
Tangency1
()¶ - Returns informations about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the tangency point on the solution curv. PntArg is the tangency point 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - 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 theses 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.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - Parameters
Index –
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_CurveTool
¶ Bases:
object
-
static
D1
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- rtype
void
-
static
D2
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- param N
- type N
gp_Vec2d
- rtype
void
-
static
D3
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- param N
- type N
gp_Vec2d
- param dN
- type dN
gp_Vec2d
- rtype
void
-
static
EpsX
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- param Tol
- type Tol
float
- rtype
float
-
static
FirstParameter
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- rtype
float
-
static
LastParameter
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- rtype
float
-
static
NbSamples
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- rtype
int
-
static
Value
()¶ - Parameters
C –
- type C
Geom2dAdaptor_Curve
- param X
- type X
float
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
static
-
class
Geom2dGcc_FunctionTanCirCu
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Parameters
Circ –
- type Circ
gp_Circ2d
- param Curv
- type Curv
Geom2dAdaptor_Curve
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_FunctionTanCuCu
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Parameters
Curv1 –
- type Curv1
Geom2dAdaptor_Curve
- param Curv2
- type Curv2
Geom2dAdaptor_Curve
- rtype
None:param Circ1:
- type Circ1
gp_Circ2d
- param Curv2
- type Curv2
Geom2dAdaptor_Curve
- rtype
None
-
InitDerivative
()¶ - Parameters
X –
- type X
math_Vector
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- param Tan1
- type Tan1
gp_Vec2d
- param Tan2
- type Tan2
gp_Vec2d
- param D21
- type D21
gp_Vec2d
- param D22
- type D22
gp_Vec2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_FunctionTanCuCuOnCu
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Parameters
C1 –
- type C1
Geom2dAdaptor_Curve
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnCi
- type OnCi
gp_Circ2d
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
gp_Circ2d
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnCi
- type OnCi
gp_Circ2d
- param Rad
- type Rad
float
- rtype
None:param L1:
- type L1
gp_Lin2d
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnCi
- type OnCi
gp_Circ2d
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
Geom2dAdaptor_Curve
- param P2
- type P2
gp_Pnt2d
- param OnCi
- type OnCi
gp_Circ2d
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
Geom2dAdaptor_Curve
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnLi
- type OnLi
gp_Lin2d
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
gp_Circ2d
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnLi
- type OnLi
gp_Lin2d
- param Rad
- type Rad
float
- rtype
None:param L1:
- type L1
gp_Lin2d
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnLi
- type OnLi
gp_Lin2d
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
Geom2dAdaptor_Curve
- param P2
- type P2
gp_Pnt2d
- param OnLi
- type OnLi
gp_Lin2d
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
Geom2dAdaptor_Curve
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnCu
- type OnCu
Geom2dAdaptor_Curve
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
gp_Circ2d
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnCu
- type OnCu
Geom2dAdaptor_Curve
- param Rad
- type Rad
float
- rtype
None:param L1:
- type L1
gp_Lin2d
- param C2
- type C2
Geom2dAdaptor_Curve
- param OnCu
- type OnCu
Geom2dAdaptor_Curve
- param Rad
- type Rad
float
- rtype
None:param C1:
- type C1
Geom2dAdaptor_Curve
- param P1
- type P1
gp_Pnt2d
- param OnCu
- type OnCu
Geom2dAdaptor_Curve
- param Rad
- type Rad
float
- rtype
None
-
InitDerivative
()¶ - Parameters
X –
- type X
math_Vector
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- param Point3
- type Point3
gp_Pnt2d
- param Tan1
- type Tan1
gp_Vec2d
- param Tan2
- type Tan2
gp_Vec2d
- param Tan3
- type Tan3
gp_Vec2d
- param D21
- type D21
gp_Vec2d
- param D22
- type D22
gp_Vec2d
- param D23
- type D23
gp_Vec2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_FunctionTanCuPnt
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Parameters
C –
- type C
Geom2dAdaptor_Curve
- param Point
- type Point
gp_Pnt2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_FunctionTanObl
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Parameters
Curve –
- type Curve
Geom2dAdaptor_Curve
- param Dir
- type Dir
gp_Dir2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Lin2d2Tan
(*args)¶ Bases:
object
- This class implements the algorithms used to create 2d line tangent to two curves. Tolang is used to determine the tolerance for the tangency points.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QualifiedCurve
- param Tolang
- type Tolang
float
- rtype
None* This class implements the algorithms used to create 2d lines passing thrue a point and tangent to a curve. Tolang is used to determine the tolerance for the tangency points.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param ThePoint
- type ThePoint
gp_Pnt2d
- param Tolang
- type Tolang
float
- rtype
None* This class implements the algorithms used to create 2d line tangent to two curves. Tolang is used to determine the tolerance for the tangency points. Param1 is used for the initial guess on the first curve. Param2 is used for the initial guess on the second curve.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QualifiedCurve
- param Tolang
- type Tolang
float
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- rtype
None* This class implements the algorithms used to create 2d lines passing thrue a point and tangent to a curve. Tolang is used to determine the tolerance for the tangency points. Param2 is used for the initial guess on the curve.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param ThePoint
- type ThePoint
gp_Pnt2d
- param Tolang
- type Tolang
float
- param Param1
- type Param1
float
- rtype
None
-
IsDone
()¶ - Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits.
- rtype
bool
-
NbSolutions
()¶ - Returns the number of lines, representing solutions computed by this algorithm. Exceptions StdFail_NotDone if the construction fails.R
- rtype
int
-
Tangency1
()¶ - Returns informations about the tangency point between the result 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. 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Returns informations about the tangency point between the result 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. 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns a line, representing the solution of index Index computed by this algorithm. 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.
- param Index
- type Index
int
- rtype
gp_Lin2d
-
WhichQualifier
()¶ - Returns the qualifiers Qualif1 and Qualif2 of the tangency arguments for the solution of index Index computed by this algorithm. The returned qualifiers are: - those specified at the start of construction when the solutions are defined as enclosing or outside with respect to the arguments, or - those computed during construction (i.e. enclosing or outside) when the solutions are defined as unqualified with respect to the arguments, or - GccEnt_noqualifier if the tangency argument is a point. 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.
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Lin2d2TanIter
(*args)¶ Bases:
object
- This class implements the algorithms used to create 2d lines passing thrue a point and tangent to a curve. Tolang is used to determine the tolerance for the tangency points. Param2 is used for the initial guess on the curve.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param ThePoint
- type ThePoint
gp_Pnt2d
- param Param1
- type Param1
float
- param Tolang
- type Tolang
float
- rtype
None* This class implements the algorithms used to create 2d line tangent to a circle and to a cuve. Tolang is used to determine the tolerance for the tangency points. Param2 is used for the initial guess on the curve. Exception BadQualifier is raised in the case of EnclosedCirc
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Param2
- type Param2
float
- param Tolang
- type Tolang
float
- rtype
None* This class implements the algorithms used to create 2d line tangent to two curves. Tolang is used to determine the tolerance for the tangency points. Param1 is used for the initial guess on the first curve. Param2 is used for the initial guess on the second curve.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param Qualified2
- type Qualified2
Geom2dGcc_QCurve
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param Tolang
- type Tolang
float
- rtype
None
-
IsDone
()¶ - This methode returns true when there is a solution and false in the other cases.
- rtype
bool
-
Tangency1
()¶ - Returns informations about the tangency point between the result 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.
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
Tangency2
()¶ - Parameters
ParSol –
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns the solution.
- rtype
gp_Lin2d
-
WhichQualifier
()¶ - Parameters
Qualif1 –
- type Qualif1
GccEnt_Position
- param Qualif2
- type Qualif2
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Lin2dTanObl
(*args)¶ Bases:
object
- This class implements the algorithm used to create 2d line tangent to a curve and doing an angle Angle with the line TheLin. Angle must be in Radian. Tolang is the angular tolerance.
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param TheLin
- type TheLin
gp_Lin2d
- param TolAng
- type TolAng
float
- param Angle
- type Angle
float
- rtype
None* This class implements the algorithm used to create 2d line tangent to a curve and doing an angle Angle with the line TheLin. Angle must be in Radian. Param2 is the initial guess on the curve QualifiedCurv. Tolang is the angular tolerance. Warning An iterative algorithm is used if Qualified1 is more complex than a line or a circle. In such cases, the algorithm constructs only one solution. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosed for a circle).
- param Qualified1
- type Qualified1
Geom2dGcc_QualifiedCurve
- param TheLin
- type TheLin
gp_Lin2d
- param TolAng
- type TolAng
float
- param Param1
- type Param1
float
- param Angle
- type Angle
float
- rtype
None
-
Intersection2
()¶ - Returns the point of intersection PntSol between the solution of index Index and the second argument (the line) of this algorithm. ParSol is the parameter of the point PntSol on the solution. ParArg is the parameter of the point PntSol on the second argument (the line). Exceptions StdFail_NotDone if the construction fails. Geom2dGcc_IsParallel if the solution and the second argument (the line) are parallel. Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits.
- rtype
bool
-
NbSolutions
()¶ - Returns the number of lines, representing solutions computed by this algorithm. Exceptions StdFail_NotDone if the construction fails.
- rtype
int
-
Tangency1
()¶ - Returns informations about the tangency point between the result 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.
- param Index
- type Index
int
- param ParSol
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
ThisSolution
()¶ - Returns a line, representing the solution of index Index computed by this algorithm. 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.
- param Index
- type Index
int
- rtype
gp_Lin2d
-
WhichQualifier
()¶ - Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosing or outside with respect to the argument, or - that computed during construction (i.e. enclosing or outside) when the solutions are defined as unqualified with respect to the argument, or - GccEnt_noqualifier if the tangency argument is a point. 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.
- param Index
- type Index
int
- param Qualif1
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_Lin2dTanOblIter
(*args)¶ Bases:
object
- This class implements the algorithm used to create 2d line tangent to a curve and doing an angle Angle with the line TheLin. Angle must be in Radian. Param2 is the initial guess on the curve QualifiedCurv. Tolang is the angular tolerance.
- param Qualified1
- type Qualified1
Geom2dGcc_QCurve
- param TheLin
- type TheLin
gp_Lin2d
- param Param1
- type Param1
float
- param TolAng
- type TolAng
float
- param Angle
default value is 0
- type Angle
float
- rtype
None
-
Intersection2
()¶ - Parameters
ParSol –
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - This method returns true when there is a solution and false in the other cases.
- rtype
bool
-
Tangency1
()¶ - Parameters
ParSol –
- type ParSol
float
- param ParArg
- type ParArg
float
- param PntSol
- type PntSol
gp_Pnt2d
- rtype
None
-
WhichQualifier
()¶ - Parameters
Qualif1 –
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_QCurve
(*args)¶ Bases:
object
- Parameters
Curve –
- type Curve
Geom2dAdaptor_Curve
- param Qualifier
- type Qualifier
GccEnt_Position
- rtype
None
-
IsEnclosed
()¶ - Returns true if the solution is Enclosed in the Curv and false in the other cases.
- rtype
bool
-
IsEnclosing
()¶ - Returns true if the solution is Enclosing the Curv and false in the other cases.
- rtype
bool
-
IsOutside
()¶ - Returns true if the solution is Outside the Curv and false in the other cases.
- rtype
bool
-
IsUnqualified
()¶ - Returns true if the solution is unqualified and false in the other cases.
- rtype
bool
-
Qualified
()¶ - Return type
-
Qualifier
()¶ - Return type
GccEnt_Position
-
property
thisown
¶ The membership flag
-
class
Geom2dGcc_QualifiedCurve
(*args)¶ Bases:
object
- Constructs a qualified curve by assigning the qualifier Qualifier to the curve Curve. Qualifier may be: - GccEnt_enclosing if the solution of a construction algorithm using the qualified curve encloses the curve, or - GccEnt_enclosed if the solution is enclosed by the curve, or - GccEnt_outside if both the solution and the curve are external to one another, or - GccEnt_unqualified if all solutions apply. Note: The interior of a curve is defined as the left-hand side of the curve in relation to its orientation. Warning Curve is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by a computation algorithm. The adapted curve is created in the following way: opencascade::handle<Geom2d_Curve> mycurve = … ; Geom2dAdaptor_Curve Curve ( mycurve ) ; The qualified curve is then constructed with this object: GccEnt_Position myQualif = GccEnt_outside ; Geom2dGcc_QualifiedCurve myQCurve ( Curve, myQualif ); is private;
- param Curve
- type Curve
Geom2dAdaptor_Curve
- param Qualifier
- type Qualifier
GccEnt_Position
- rtype
None
-
IsEnclosed
()¶ - It returns true if the solution is Enclosed in the Curv and false in the other cases.
- rtype
bool
-
IsEnclosing
()¶ - It returns true if the solution is Enclosing the Curv and false in the other cases.
- rtype
bool
-
IsOutside
()¶ - It returns true if the solution is Outside the Curv and false in the other cases.
- rtype
bool
-
IsUnqualified
()¶ - Returns true if the solution is unqualified and false in the other cases.
- rtype
bool
-
Qualified
()¶ - Returns a 2D curve to which the qualifier is assigned. Warning The returned curve is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by a computation algorithm. The Geom2d curve on which the adapted curve is based can be obtained in the following way: myQualifiedCurve = … ; Geom2dAdaptor_Curve myAdaptedCurve = myQualifiedCurve.Qualified(); opencascade::handle<Geom2d_Curve> = myAdaptedCurve.Curve();
- rtype
Geom2dAdaptor_Curve
-
Qualifier
()¶ - Returns - the qualifier of this qualified curve if it is enclosing, enclosed or outside, or - GccEnt_noqualifier if it is unqualified.
- rtype
GccEnt_Position
-
property
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
geom2dgcc
¶ Bases:
object
-
static
Enclosed
()¶ - Constructs such a qualified curve that the solution computed by a construction algorithm using the qualified curve is enclosed by the curve. Warning Obj is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by a computation algorithm. The adapted curve is created in the following way: opencascade::handle<Geom2d_Curve> mycurve = … ; Geom2dAdaptor_Curve Obj ( mycurve ) ; The qualified curve is then constructed with this object: Geom2dGcc_QualifiedCurve myQCurve = Geom2dGcc::Enclosed(Obj);
- param Obj
- type Obj
Geom2dAdaptor_Curve
- rtype
Geom2dGcc_QualifiedCurve
-
static
Enclosing
()¶ - Constructs such a qualified curve that the solution computed by a construction algorithm using the qualified curve encloses the curve. Warning Obj is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by a computation algorithm. The adapted curve is created in the following way: opencascade::handle<Geom2d_Curve> mycurve = … ; Geom2dAdaptor_Curve Obj ( mycurve ) ; The qualified curve is then constructed with this object: Geom2dGcc_QualifiedCurve myQCurve = Geom2dGcc::Enclosing(Obj);
- param Obj
- type Obj
Geom2dAdaptor_Curve
- rtype
Geom2dGcc_QualifiedCurve
-
static
Outside
()¶ - Constructs such a qualified curve that the solution computed by a construction algorithm using the qualified curve and the curve are external to one another. Warning Obj is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by a computation algorithm. The adapted curve is created in the following way: opencascade::handle<Geom2d_Curve> mycurve = … ; Geom2dAdaptor_Curve Obj ( mycurve ) ; The qualified curve is then constructed with this object: Geom2dGcc_QualifiedCurve myQCurve = Geom2dGcc::Outside(Obj);
- param Obj
- type Obj
Geom2dAdaptor_Curve
- rtype
Geom2dGcc_QualifiedCurve
-
static
Unqualified
()¶ - Constructs such a qualified curve that the relative position of the solution computed by a construction algorithm using the qualified curve to the circle or line is not qualified, i.e. all solutions apply. Warning Obj is an adapted curve, i.e. an object which is an interface between: - the services provided by a 2D curve from the package Geom2d, - and those required on the curve by a computation algorithm. The adapted curve is created in the following way: opencascade::handle<Geom2d_Curve> mycurve = … ; Geom2dAdaptor_Curve Obj ( mycurve ) ; The qualified curve is then constructed with this object: Geom2dGcc_QualifiedCurve myQCurve = Geom2dGcc::Unqualified(Obj);
- param Obj
- type Obj
Geom2dAdaptor_Curve
- rtype
Geom2dGcc_QualifiedCurve
-
property
thisown
¶ The membership flag
-
static