OCC.GccEnt module

This package provides an implementation of the qualifiedentities useful to create 2d entities with geometricconstraints. The qualifier explains which subfamily ofsolutions we want to obtain. It uses the following law: thematter/the interior side is at the left of the line, if we gofrom the beginning to the end.The qualifiers are:Enclosing : the solution(s) must enclose the argument.Enclosed : the solution(s) must be enclosed in theargument.Outside : both the solution(s) and the argument must beoutside to each other.Unqualified : the position is undefined, so give all thesolutions.The use of a qualifier is always required if suchsubfamilies exist. For example, it is not used for a point.Note: the interior of a curve is defined as the left-handside of the curve in relation to its orientation.

class GccEnt_Array1OfPosition(*args)

Bases: object

Parameters:
  • Low (int) –
  • Up (int) –
  • Item (GccEnt_Position &) –
  • Low
  • Up
Return type:

None

Return type:

None

Assign()
Parameters:Other (GccEnt_Array1OfPosition &) –
Return type:GccEnt_Array1OfPosition
ChangeValue()
Parameters:Index (int) –
Return type:GccEnt_Position
Destroy()
Return type:None
Init()
Parameters:V (GccEnt_Position &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (GccEnt_Array1OfPosition &) –
Return type:GccEnt_Array1OfPosition
SetValue()
Parameters:
  • Index (int) –
  • Value (GccEnt_Position &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (int) –
Return type:GccEnt_Position
thisown

The membership flag

class GccEnt_QualifiedCirc(*args)

Bases: object

  • Constructs a qualified circle by assigning the qualifier Qualifier to the circle Qualified. Qualifier may be: - GccEnt_enclosing if the solution computed by a construction algorithm using the qualified circle encloses the circle, or - GccEnt_enclosed if the solution is enclosed by the circle, or - GccEnt_outside if both the solution and the circle are external to one another, or - GccEnt_unqualified if all solutions apply.
Parameters:
  • Qualified (gp_Circ2d) –
  • Qualifier (GccEnt_Position) –
Return type:

None

Return type:

None

IsEnclosed()
  • Returns true if the solution computed by a construction algorithm using this qualified circle is enclosed by the circle.
Return type:bool
IsEnclosing()
  • Returns true if the solution computed by a construction algorithm using this qualified circle encloses the circle.
Return type:bool
IsOutside()
  • Returns true if both the solution computed by a construction algorithm using this qualified circle and the circle are external to one another.
Return type:bool
IsUnqualified()
  • Returns true if the Circ2d is Unqualified and false in the other cases.
Return type:bool
Qualified()
  • Returns a 2D circle to which the qualifier is assigned.
Return type:gp_Circ2d
Qualifier()
  • Returns - the qualifier of this qualified circle, if it is enclosing, enclosed or outside, or - GccEnt_noqualifier if it is unqualified.
Return type:GccEnt_Position
thisown

The membership flag

class GccEnt_QualifiedLin(*args)

Bases: object

  • Constructs a qualified line by assigning the qualifier Qualifier to the line Qualified. Qualifier may be: - GccEnt_enclosed if the solution is enclosed by the line, or - GccEnt_outside if both the solution and the line are external to one another, or - GccEnt_unqualified if all solutions apply. Note : the interior of a line is defined as the left-hand side of the line in relation to its orientation.
Parameters:
  • Qualified (gp_Lin2d) –
  • Qualifier (GccEnt_Position) –
Return type:

None

Return type:

None

IsEnclosed()
  • Returns true if the solution is Enclosed in the Lin2d and false in the other cases.
Return type:bool
IsOutside()
  • Returns true if the solution is Outside the Lin2d and false in the other cases.
Return type:bool
IsUnqualified()
  • Returns true if the solution is unqualified and false in the other cases.
Return type:bool
Qualified()
  • Returns a 2D line to which the qualifier is assigned.
Return type:gp_Lin2d
Qualifier()
  • Returns the qualifier of this qualified line, if it is ‘enclosed’ or ‘outside’, or - GccEnt_noqualifier if it is unqualified.
Return type:GccEnt_Position
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class gccent

Bases: object

static Enclosed(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.
Parameters:Obj (gp_Lin2d) –
Return type:GccEnt_QualifiedLin
  • Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
static Enclosing(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs such a qualified circle that the solution computed by a construction algorithm using the qualified circle encloses the circle.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
static Outside(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.
Parameters:Obj (gp_Lin2d) –
Return type:GccEnt_QualifiedLin
  • Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
static Unqualified(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs a qualified line, so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.
Parameters:Obj (gp_Lin2d) –
Return type:GccEnt_QualifiedLin
  • Constructs a qualified circle so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
thisown

The membership flag

gccent_Enclosed(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.
Parameters:Obj (gp_Lin2d) –
Return type:GccEnt_QualifiedLin
  • Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
gccent_Enclosing(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs such a qualified circle that the solution computed by a construction algorithm using the qualified circle encloses the circle.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
gccent_Outside(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.
Parameters:Obj (gp_Lin2d) –
Return type:GccEnt_QualifiedLin
  • Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
gccent_Unqualified(*args) → OCC.GccEnt.GccEnt_QualifiedCirc
  • Constructs a qualified line, so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.
Parameters:Obj (gp_Lin2d) –
Return type:GccEnt_QualifiedLin
  • Constructs a qualified circle so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.
Parameters:Obj (gp_Circ2d) –
Return type:GccEnt_QualifiedCirc
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

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