OCC.Core.GccAna module¶
GccAna module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_gccana.html
-
class
GccAna_Circ2d2TanOn
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles TANgent to two 2d circles and having the center ON a 2d line.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param OnLine
- type OnLine
gp_Lin2d
- 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 2d line.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param OnLine
- type OnLine
gp_Lin2d
- 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 2d line.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param OnLine
- type OnLine
gp_Lin2d
- 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 2d line.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Point2
- type Point2
gp_Pnt2d
- param OnLine
- type OnLine
gp_Lin2d
- 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 Point2
- type Point2
gp_Pnt2d
- param OnLine
- type OnLine
gp_Lin2d
- 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 OnLine
- type OnLine
gp_Lin2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to two 2d circles and having the center ON a 2d circle.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param OnCirc
- type OnCirc
gp_Circ2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a circle and a line having the center ON a 2d circle.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param OnCirc
- type OnCirc
gp_Circ2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a circle and a point having the center ON a 2d circle.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Point2
- type Point2
gp_Pnt2d
- param OnCirc
- type OnCirc
gp_Circ2d
- 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 2d circle.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param OnCirc
- type OnCirc
gp_Circ2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles TANgent to a line and a point having the center ON a 2d circle.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Point2
- type Point2
gp_Pnt2d
- param OnCirc
- type OnCirc
gp_Circ2d
- 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 circle.
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- param OnCirc
- type OnCirc
gp_Circ2d
- param Tolerance
- type Tolerance
float
- rtype
None
-
CenterOn3
()¶ - Returns the informations about the center (on the curv) of the result number Index and the third argument. ParArg is the intrinsic parameter of the point PntArg 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 PntArg
- type PntArg
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
()¶ - True if the solution and the first argument are the same (2 circles). If R1 is the radius of the first argument and Rsol the radius of the solution and dist the distance between the two centers, we concider the two circles are identical if R1+dist-Rsol is less than Tolerance. False in the other cases. Raises OutOfRange if Index is greater than the number of solutions and NotDone if IsDone returns false.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - True if the solution and the second argument are the same (2 circles). If R2 is the radius of the second argument and Rsol the radius of the solution and dist the distance between the two centers, we concider the two circles are identical if R2+dist-Rsol is less than Tolerance. False in the other cases. Raises OutOfRange if Index is greater than the number of solutions and NotDone if IsDone returns false.
- 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 the 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 ParArg is the intrinsic parameter of the point PntSol on the first argument. Raises OutOfRange if Index is greater than the number of solutions and NotDone if IsDone returns false.
- 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 the 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. ParArg is the intrinsic parameter of the point PntSol on the second argument. Raises OutOfRange if Index is greater than the number of solutions and NotDone if IsDone returns false.
- 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. 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. 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
GccAna_Circ2d2TanRad
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles TANgent to two 2d circle with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- 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 circle and a 2d line with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- 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 circle and a point with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Point2
- type Point2
gp_Pnt2d
- 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 point with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Point2
- type Point2
gp_Pnt2d
- 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 2d lines with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Radius
- type Radius
float
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles passing through two points with a radius of Radius. It raises NegativeValue if Radius is lower than zero.
- param Point1
- type Point1
gp_Pnt2d
- 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. 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 number Index is equal to the first argument. 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. 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 circles, representing solutions computed by this algorithm. Exceptions StdFail_NotDone if the construction fails. of solutions.
- 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. 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. 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. 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
()¶ - 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
GccAna_Circ2d3Tan
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d circles tangent to 3 circles. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param Qualified3
- type Qualified3
GccEnt_QualifiedCirc
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 2 circles and 1 line. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param Qualified3
- type Qualified3
GccEnt_QualifiedLin
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 1 circle and 2 lines. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Qualified3
- type Qualified3
GccEnt_QualifiedLin
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 3 lines. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Qualified3
- type Qualified3
GccEnt_QualifiedLin
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 2 circles and 1 Point. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param Point3
- type Point3
gp_Pnt2d
- 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 1 Point. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Point3
- type Point3
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to 2 lines and 1 Point. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Qualified2
- type Qualified2
GccEnt_QualifiedLin
- param Point3
- type Point3
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a circle and passing thrue 2 Points. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Point2
- type Point2
gp_Pnt2d
- param Point3
- type Point3
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a line and passing thrue 2 Points. ConstructionError is raised if there is a problem during the computation.
- param Qualified1
- type Qualified1
GccEnt_QualifiedLin
- param Point2
- type Point2
gp_Pnt2d
- param Point3
- type Point3
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles passing thrue 3 Points. ConstructionError is raised if there is a problem during the computation.
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- param Point3
- type Point3
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - This method returns True if the construction 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 number Index is equal to the first argument. Raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame2
()¶ - Returns True if the solution number Index is equal to the second argument. Raises OutOfRange Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- param Index
- type Index
int
- rtype
bool
-
IsTheSame3
()¶ - Returns True if the solution number Index is equal to the third argument. Raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- param Index
- type Index
int
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. 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. Raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- 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 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. Raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- 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 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. Raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- 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. Raises OutOfRange if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- param Index
- type Index
int
- rtype
gp_Circ2d
-
WhichQualifier
()¶ - 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
GccAna_Circ2dBisec
(*args)¶ Bases:
object
- Constructs bisecting curves between the two circles Circ1 and Circ2.
- param Circ1
- type Circ1
gp_Circ2d
- param Circ2
- type Circ2
gp_Circ2d
- rtype
None
-
IsDone
()¶ - This method returns True if the construction algorithm succeeded.
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. Raises NotDone if the construction algorithm didn’t succeed.
- rtype
int
-
ThisSolution
()¶ - Returns the solution number Index Raises OutOfRange exception if Index is greater than the number of solutions. It raises NotDone if the construction algorithm didn’t succeed.
- param Index
- type Index
int
- rtype
opencascade::handle<GccInt_Bisec>
-
property
thisown
¶ The membership flag
-
class
GccAna_Circ2dTanCen
(*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
GccEnt_QualifiedCirc
- param Pcenter
- type Pcenter
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This method implements the algorithms used to create 2d circles tangent to a line and centered on a point.
- param Linetan
- type Linetan
gp_Lin2d
- param Pcenter
- type Pcenter
gp_Pnt2d
- rtype
None* This method implements the algorithms used to create 2d circles passing thrue a point and centered on a point. 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. In these algorithms Tolerance is only used 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 therefore a very small circle. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosing for a line).
- param Point1
- type Point1
gp_Pnt2d
- param Pcenter
- type Pcenter
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - This method returns True if the construction 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 number Index is equal to the first argument. 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
bool
-
NbSolutions
()¶ - Returns the number of circles, representing solutions computed by this algorithm and raises NotDone exception if the 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 circle, representing 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. Raises NotDone if the construction algorithm didn’t succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zer
- 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 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
- rtype
None
-
property
thisown
¶ The membership flag
-
class
GccAna_Circ2dTanOnRad
(*args)¶ Bases:
object
- This methods implements the algorithms used to create 2d Circles tangent to a circle and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. For example Tolerance is used in the case of EnclosedCirc when Radius-R1+dist is greater Tolerance (dist is the distance between the line and the location of the circ, R1 is the radius of the circ) because there is no solution. raises NegativeValue in case of NegativeRadius.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- 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 2d Line 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
GccEnt_QualifiedLin
- 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 passing through a 2d Point and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases.
- param Point1
- type Point1
gp_Pnt2d
- 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 circle 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
GccEnt_QualifiedCirc
- 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 2d Line 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
GccEnt_QualifiedLin
- 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 passing through a 2d Point 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 Point1
- type Point1
gp_Pnt2d
- param OnCirc
- type OnCirc
gp_Circ2d
- 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. 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
()¶ - 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 number Index is equal to the first argument and False in the other cases. 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 circles, representing solutions. 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. 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. 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
()¶ - 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, 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
GccAna_CircLin2dBisec
(*args)¶ Bases:
object
- Constructs bisecting curves between the circle Circle and the line Line.
- param Circle
- type Circle
gp_Circ2d
- param Line
- type Line
gp_Lin2d
- rtype
None
-
IsDone
()¶ - Returns true (this construction algorithm never fails).
- rtype
bool
-
NbSolutions
()¶ - Returns the number of curves, representing solutions computed by this algorithm.
- rtype
int
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm.
- param Index
- type Index
int
- rtype
opencascade::handle<GccInt_Bisec>
-
property
thisown
¶ The membership flag
-
class
GccAna_CircPnt2dBisec
(*args)¶ Bases:
object
- Constructs bisecting curves between the circle Circle1 and the point Point2.
- param Circle1
- type Circle1
gp_Circ2d
- param Point2
- type Point2
gp_Pnt2d
- rtype
None* Constructs bisecting curves between the circle Circle1 and the point Point2. Tolerance is used.
- param Circle1
- type Circle1
gp_Circ2d
- param Point2
- type Point2
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - Returns true (this construction algorithm never fails).
- rtype
bool
-
NbSolutions
()¶ - Returns the number of curves, representing solutions computed by this algorithm.
- rtype
int
-
ThisSolution
()¶ - Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm.
- param Index
- type Index
int
- rtype
opencascade::handle<GccInt_Bisec>
-
property
thisown
¶ The membership flag
-
class
GccAna_Lin2d2Tan
(*args)¶ Bases:
object
- This methods implements the algorithms used to create 2d lines passing thrue 2 points. Tolerance is used because we can’t create a line when the distance between the two points is too small.
- param ThePoint1
- type ThePoint1
gp_Pnt2d
- param ThePoint2
- type ThePoint2
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d lines tangent to one circle and passing thrue a point. Exception BadQualifier is raised in the case of EnclosedCirc Tolerance is used because there is no solution when the point is inside the solution according to the tolerance.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param ThePoint
- type ThePoint
gp_Pnt2d
- param Tolerance
- type Tolerance
float
- rtype
None* This methods implements the algorithms used to create 2d lines tangent to 2 circles. Exception BadQualifier is raised in the case of EnclosedCirc
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Qualified2
- type Qualified2
GccEnt_QualifiedCirc
- param Tolerance
- type Tolerance
float
- rtype
None
-
IsDone
()¶ - This method returns true when there is a solution and false in the other cases.
- rtype
bool
-
NbSolutions
()¶ - This method returns the number of solutions. 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 PntSol on the argument curv. Raises OutOfRange is raised if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- 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 ParSol on the solution curv. ParArg is the intrinsic parameter of the point PntSol on the argument curv. Raises OutOfRange is raised if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- 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. Raises OutOfRange is raised if Index is greater than the number of solutions. It raises NotDone if the algorithm failed.
- 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
GccAna_Lin2dBisec
(*args)¶ Bases:
object
- Constructs bisecting lines between the two lines Lin1 and Lin2.
- param Lin1
- type Lin1
gp_Lin2d
- param Lin2
- type Lin2
gp_Lin2d
- rtype
None
-
Intersection1
()¶ - Returns informations about the intersection point between the result number Index and the first argument. 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
-
Intersection2
()¶ - Returns informations about the intersection point between the result number Index and the second argument. 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
-
IsDone
()¶ - Returns True when the algorithm succeded.
- rtype
bool
-
NbSolutions
()¶ - Returns the number of solutions and raise NotDone if the constructor wasn’t called before.
- rtype
int
-
ThisSolution
()¶ - Returns the solution number Index . The first solution is the inside one and the second is the outside one. For the first solution the direction is D1+D2 (D1 is the direction of the first argument and D2 the direction of the second argument). For the second solution the direction is D1-D2. 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_Lin2d
-
property
thisown
¶ The membership flag
-
class
GccAna_Lin2dTanObl
(*args)¶ Bases:
object
- This class implements the algorithms used to create 2d line passing through a point and making an angle with a line.
- param ThePoint
- type ThePoint
gp_Pnt2d
- param TheLine
- type TheLine
gp_Lin2d
- param TheAngle
- type TheAngle
float
- rtype
None* This class implements the algorithms used to create 2d line tangent to a circle and making an angle with a line. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosed for a circle).
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param TheLine
- type TheLine
gp_Lin2d
- param TheAngle
- type TheAngle
float
- rtype
None
-
Intersection2
()¶ - Returns informations about the intersection between the result number Index and the third argument. 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
-
IsDone
()¶ - 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
-
NbSolutions
()¶ - Returns the number of of lines, representing solutions computed by this algorithm. 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 ParSol on the solution curv. ParArg is the intrinsic parameter of the point ParArg on the argument curv. 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. 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. 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_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
GccAna_Lin2dTanPar
(*args)¶ Bases:
object
- This method implements the algorithms used to create a 2d line passing through a point and parallel to another line.
- param ThePoint
- type ThePoint
gp_Pnt2d
- param Lin1
- type Lin1
gp_Lin2d
- rtype
None* This method implements the algorithms used to create a 2d line tangent to a circle and parallel to another line. It raises BadQualifier in case of EnclosedCirc. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosed for a circle).
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param Lin1
- type Lin1
gp_Lin2d
- rtype
None
-
IsDone
()¶ - Returns True if the algorithm succeeded.
- rtype
bool
-
NbSolutions
()¶ - Returns the number of solutions. 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. ParArg is equal 0 when the solution is passing thrue a point. 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 Pnt
- type Pnt
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. 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_Lin2d
-
WhichQualifier
()¶ - 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 computed in case of unqualified). 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 Qualif1
- type Qualif1
GccEnt_Position
- rtype
None
-
property
thisown
¶ The membership flag
-
class
GccAna_Lin2dTanPer
(*args)¶ Bases:
object
- This method implements the algorithms used to create 2d lines passing through a point and perpendicular to a line.
- param ThePnt
- type ThePnt
gp_Pnt2d
- param TheLin
- type TheLin
gp_Lin2d
- rtype
None* This method implements the algorithms used to create 2d lines passing through a point and perpendicular to a circle.
- param ThePnt
- type ThePnt
gp_Pnt2d
- param TheCircle
- type TheCircle
gp_Circ2d
- rtype
None* This method implements the algorithms used to create 2d lines tangent to a circle and perpendicular to a line.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param TheLin
- type TheLin
gp_Lin2d
- rtype
None* This method implements the algorithms used to create 2d lines tangent to a circle and perpendicular to a circle.
- param Qualified1
- type Qualified1
GccEnt_QualifiedCirc
- param TheCircle
- type TheCircle
gp_Circ2d
- rtype
None
-
Intersection2
()¶ - Returns informations about the intersection between the solution number Index and the second argument. It returns the first intersection in a case of Lin2dTanPer which is perpendicular to a circle . ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. 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
-
IsDone
()¶ - Returns True if the algorithm succeeded.
- rtype
bool
-
NbSolutions
()¶ - Returns the number of solutions. 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. If the first argument is a point ParArg is equal zero. 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 Pnt
- type Pnt
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. 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_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
GccAna_LinPnt2dBisec
(*args)¶ Bases:
object
- Constructs a bisecting curve between the line Line1 and the point Point2.
- param Line1
- type Line1
gp_Lin2d
- param Point2
- type Point2
gp_Pnt2d
- rtype
None
-
IsDone
()¶ - Returns True if the algorithm succeeded.
- rtype
bool
-
ThisSolution
()¶ - Returns the number of solutions. It raises NotDone if the construction algorithm didn’t succeed.
- rtype
opencascade::handle<GccInt_Bisec>
-
property
thisown
¶ The membership flag
-
class
GccAna_Pnt2dBisec
(*args)¶ Bases:
object
- Constructs a bisecting line between the points Point1 and Point2.
- param Point1
- type Point1
gp_Pnt2d
- param Point2
- type Point2
gp_Pnt2d
- rtype
None
-
HasSolution
()¶ - Returns true if this algorithm has a solution, i.e. if the two points are not coincident.
- rtype
bool
-
IsDone
()¶ - Returns true (this construction algorithm never fails).
- rtype
bool
-
ThisSolution
()¶ - Returns a line, representing the solution computed by this algorithm.
- rtype
gp_Lin2d
-
property
thisown
¶ The membership flag