OCC.GccAna module

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • OnLine (gp_Lin2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • OnLine (gp_Lin2d) –
  • Tolerance (float) –
Return type:

None

  • This method implements the algorithms used to create 2d circles TANgent to two 2d lines having the center ON a 2d line.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • OnLine (gp_Lin2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Point2 (gp_Pnt2d) –
  • OnLine (gp_Lin2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Point2 (gp_Pnt2d) –
  • OnLine (gp_Lin2d) –
  • Tolerance (float) –
Return type:

None

  • This method implements the algorithms used to create 2d circles TANgent to two points having the center ON a 2d line.
Parameters:
Return type:

None

  • This method implements the algorithms used to create 2d circles TANgent to two 2d circles and having the center ON a 2d circle.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • OnCirc (gp_Circ2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • OnCirc (gp_Circ2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
Return type:

None

  • This method implements the algorithms used to create 2d circles TANgent to two 2d lines having the center ON a 2d circle.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • OnCirc (gp_Circ2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
Return type:

None

  • This method implements the algorithms used to create 2d circles TANgent to two points having the center ON a 2d circle.
Parameters:
Return type:

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.
Parameters:
  • Index (int) –
  • ParArg (float &) –
  • PntArg (gp_Pnt2d) –
Return type:

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.
Return type: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.
Parameters:Index (int) –
Return type: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.
Parameters:Index (int) –
Return type:bool
NbSolutions()
  • Returns the number of circles, representing solutions computed by this algorithm. Exceptions StdFail_NotDone if the construction fails.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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.
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
Return type:

None

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Point2 (gp_Pnt2d) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Point2 (gp_Pnt2d) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
Return type:

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.
Return type: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.
Parameters:Index (int) –
Return type: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.
Parameters:Index (int) –
Return type:bool
NbSolutions()
  • This method returns the number of circles, representing solutions computed by this algorithm. Exceptions StdFail_NotDone if the construction fails. of solutions.
Return type: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
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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).
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
Return type:

None

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • Qualified3 (GccEnt_QualifiedCirc &) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • Qualified3 (GccEnt_QualifiedLin &) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • Qualified3 (GccEnt_QualifiedLin &) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • Qualified3 (GccEnt_QualifiedLin &) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • Point3 (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • Point3 (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Qualified2 (GccEnt_QualifiedLin &) –
  • Point3 (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Point2 (gp_Pnt2d) –
  • Point3 (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • Point2 (gp_Pnt2d) –
  • Point3 (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

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.
Parameters:
Return type:

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.
Return type: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.
Parameters:Index (int) –
Return type: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.
Parameters:Index (int) –
Return type: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.
Parameters:Index (int) –
Return type:bool
NbSolutions()
  • This method returns the number of solutions. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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).
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
  • Qualif3 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class GccAna_Circ2dBisec(*args)

Bases: object

  • Constructs bisecting curves between the two circles Circ1 and Circ2.
Parameters:
Return type:

None

IsDone()
  • This method returns True if the construction algorithm succeeded.
Return type:bool
NbSolutions()
  • This method returns the number of solutions. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:Index (int) –
Return type:Handle_GccInt_Bisec
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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Pcenter (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

None

  • This method implements the algorithms used to create 2d circles tangent to a line and centered on a point.
Parameters:
Return type:

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).
Parameters:
Return type:

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.
Return type: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.
Parameters:Index (int) –
Return type:bool
NbSolutions()
  • Returns the number of circles, representing solutions computed by this algorithm and raises NotDone exception if the algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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
Parameters:Index (int) –
Return type: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).
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • OnLine (gp_Lin2d) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • OnLine (gp_Lin2d) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • OnCirc (gp_Circ2d) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedLin &) –
  • OnCirc (gp_Circ2d) –
  • Radius (float) –
  • Tolerance (float) –
Return type:

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.
Parameters:
Return type:

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.
Parameters:
  • Index (int) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Return type: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.
Parameters:Index (int) –
Return type:bool
NbSolutions()
  • This method returns the number of circles, representing solutions. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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
Parameters:Index (int) –
Return type: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.
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class GccAna_CircLin2dBisec(*args)

Bases: object

  • Constructs bisecting curves between the circle Circle and the line Line.
Parameters:
Return type:

None

IsDone()
  • Returns true (this construction algorithm never fails).
Return type:bool
NbSolutions()
  • Returns the number of curves, representing solutions computed by this algorithm.
Return type: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.
Parameters:Index (int) –
Return type:Handle_GccInt_Bisec
thisown

The membership flag

class GccAna_CircPnt2dBisec(*args)

Bases: object

  • Constructs bisecting curves between the circle Circle1 and the point Point2.
Parameters:
Return type:

None

  • Constructs bisecting curves between the circle Circle1 and the point Point2. Tolerance is used.
Parameters:
Return type:

None

IsDone()
  • Returns true (this construction algorithm never fails).
Return type:bool
NbSolutions()
  • Returns the number of curves, representing solutions computed by this algorithm.
Return type: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.
Parameters:Index (int) –
Return type:Handle_GccInt_Bisec
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.
Parameters:
Return type:

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.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • ThePoint (gp_Pnt2d) –
  • Tolerance (float) –
Return type:

None

  • This methods implements the algorithms used to create 2d lines tangent to 2 circles. Exception BadQualifier is raised in the case of EnclosedCirc
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Qualified2 (GccEnt_QualifiedCirc &) –
  • Tolerance (float) –
Return type:

None

IsDone()
  • This method returns true when there is a solution and false in the other cases.
Return type:bool
NbSolutions()
  • This method returns the number of solutions. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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.
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class GccAna_Lin2dBisec(*args)

Bases: object

  • Constructs bisecting lines between the two lines Lin1 and Lin2.
Parameters:
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

None

IsDone()
  • Returns True when the algorithm succeded.
Return type:bool
NbSolutions()
  • Returns the number of solutions and raise NotDone if the constructor wasn’t called before.
Return type: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.
Parameters:Index (int) –
Return type:gp_Lin2d
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.
Parameters:
Return type:

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).
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • TheLine (gp_Lin2d) –
  • TheAngle (float) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Return type:bool
NbSolutions()
  • Returns the number of of lines, representing solutions computed by this algorithm. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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.
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

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.
Parameters:
Return type:

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).
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • Lin1 (gp_Lin2d) –
Return type:

None

IsDone()
  • Returns True if the algorithm succeeded.
Return type:bool
NbSolutions()
  • Returns the number of solutions. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • Pnt (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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.
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

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.
Parameters:
Return type:

None

  • This method implements the algorithms used to create 2d lines passing through a point and perpendicular to a circle.
Parameters:
Return type:

None

  • This method implements the algorithms used to create 2d lines tangent to a circle and perpendicular to a line.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • TheLin (gp_Lin2d) –
Return type:

None

  • This method implements the algorithms used to create 2d lines tangent to a circle and perpendicular to a circle.
Parameters:
  • Qualified1 (GccEnt_QualifiedCirc &) –
  • TheCircle (gp_Circ2d) –
Return type:

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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • PntSol (gp_Pnt2d) –
Return type:

None

IsDone()
  • Returns True if the algorithm succeeded.
Return type:bool
NbSolutions()
  • Returns the number of solutions. Raises NotDone if the construction algorithm didn’t succeed.
Return type: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.
Parameters:
  • Index (int) –
  • ParSol (float &) –
  • ParArg (float &) –
  • Pnt (gp_Pnt2d) –
Return type:

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.
Parameters:Index (int) –
Return type: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.
Parameters:
  • Index (int) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class GccAna_LinPnt2dBisec(*args)

Bases: object

  • Constructs a bisecting curve between the line Line1 and the point Point2.
Parameters:
Return type:

None

IsDone()
  • Returns True if the algorithm succeeded.
Return type:bool
ThisSolution()
  • Returns the number of solutions. It raises NotDone if the construction algorithm didn’t succeed.
Return type:Handle_GccInt_Bisec
thisown

The membership flag

class GccAna_Pnt2dBisec(*args)

Bases: object

  • Constructs a bisecting line between the points Point1 and Point2.
Parameters:
Return type:

None

HasSolution()
  • Returns true if this algorithm has a solution, i.e. if the two points are not coincident.
Return type:bool
IsDone()
  • Returns true (this construction algorithm never fails).
Return type:bool
ThisSolution()
  • Returns a line, representing the solution computed by this algorithm.
Return type:gp_Lin2d
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases