OCC.GccAna module

class OCC.GccAna.GccAna_Circ2d2TanOn(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
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 (Standard_Integer) –
  • 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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_Circ2d2TanRad(*args)

Bases: object

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 (Standard_Integer) –
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 (Standard_Integer) –
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 (Standard_Integer) –
  • 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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_Circ2d3Tan(*args)

Bases: object

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

None

thisown

The membership flag

class OCC.GccAna.GccAna_Circ2dBisec(*args)

Bases: object

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 (Standard_Integer) –
Return type:Handle_GccInt_Bisec
thisown

The membership flag

class OCC.GccAna.GccAna_Circ2dTanCen(*args)

Bases: object

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 (Standard_Integer) –
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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_Circ2dTanOnRad(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_CircLin2dBisec(*args)

Bases: object

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 (Standard_Integer) –
Return type:Handle_GccInt_Bisec
thisown

The membership flag

class OCC.GccAna.GccAna_CircPnt2dBisec(*args)

Bases: object

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 (Standard_Integer) –
Return type:Handle_GccInt_Bisec
thisown

The membership flag

class OCC.GccAna.GccAna_Lin2d2Tan(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
  • Qualif2 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_Lin2dBisec(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
  • 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 (Standard_Integer) –
Return type:gp_Lin2d
thisown

The membership flag

class OCC.GccAna.GccAna_Lin2dTanObl(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_Lin2dTanPar(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_Lin2dTanPer(*args)

Bases: object

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 (Standard_Integer) –
  • 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 (Standard_Integer) –
  • 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 (Standard_Integer) –
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 (Standard_Integer) –
  • Qualif1 (GccEnt_Position &) –
Return type:

None

thisown

The membership flag

class OCC.GccAna.GccAna_LinPnt2dBisec(*args)

Bases: object

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 OCC.GccAna.GccAna_Pnt2dBisec(*args)

Bases: object

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 OCC.GccAna.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()