# OCC.Intf module

class `Handle_Intf_SequenceNodeOfSeqOfSectionLine`(*args)

  Bases: `OCC.TCollection.Handle_TCollection_SeqNode`

  static `DownCast`()
  `GetObject`()
  `IsNull`()
  `Nullify`()
  `thisown`

    The membership flag

class `Handle_Intf_SequenceNodeOfSeqOfSectionPoint`(*args)

  Bases: `OCC.TCollection.Handle_TCollection_SeqNode`

  static `DownCast`()
  `GetObject`()
  `IsNull`()
  `Nullify`()
  `thisown`

    The membership flag

class `Handle_Intf_SequenceNodeOfSeqOfTangentZone`(*args)

  Bases: `OCC.TCollection.Handle_TCollection_SeqNode`

  static `DownCast`()
  `GetObject`()
  `IsNull`()
  `Nullify`()
  `thisown`

    The membership flag

class `Intf_Array1OfLin`(*args)

  Bases: `object`

  Parameters: | Low (int) – Up (int) – Item (gp_Lin) – Low – Up –
  Return type: | None
  Return type: | None

  `Assign`()

    Parameters: | Other (Intf_Array1OfLin &) –
    Return type: | Intf_Array1OfLin

  `ChangeValue`()

    Parameters: | Index (int) –
    Return type: | gp_Lin

  `Destroy`()

    Return type: | None

  `Init`()

    Parameters: | V (gp_Lin) –
    Return type: | None

  `IsAllocated`()

    Return type: | bool

  `Length`()

    Return type: | int

  `Lower`()

    Return type: | int

  `Set`()

    Parameters: | Other (Intf_Array1OfLin &) –
    Return type: | Intf_Array1OfLin

  `SetValue`()

    Parameters: | Index (int) – Value (gp_Lin) –
    Return type: | None

  `Upper`()

    Return type: | int

  `Value`()

    Parameters: | Index (int) –
    Return type: | gp_Lin

  `thisown`

    The membership flag

class `Intf_Interference`(*args, **kwargs)

  Bases: `object`

  `Contains`()
    - Tests if the polylines of intersection or the zones of tangence contain the point of intersection <ThePnt>.

    Parameters: | ThePnt (Intf_SectionPoint &) –
    Return type: | bool

  `Dump`()

    Return type: | None

  `GetTolerance`()
    - Gives the tolerance used for the calculation.

    Return type: | float

  `Insert`()
    - Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.

    Parameters: | TheZone (Intf_TangentZone &) –
    Return type: | bool

    - Insert a new segment of intersection in the current list of polylines of intersection of the interference.

    Parameters: | pdeb (Intf_SectionPoint &) – pfin (Intf_SectionPoint &) –
    Return type: | None

  `LineValue`()
    - Gives the polyline of intersection at address <Index> in the interference.

    Parameters: | Index (int) –
    Return type: | Intf_SectionLine

  `NbSectionLines`()
    - Gives the number of polylines of intersection in the interference.

    Return type: | int

  `NbSectionPoints`()
    - Gives the number of points of intersection in the interference.

    Return type: | int

  `NbTangentZones`()
    - Gives the number of zones of tangence in the interference.

    Return type: | int

  `PntValue`()
    - Gives the point of intersection of address Index in the interference.

    Parameters: | Index (int) –
    Return type: | Intf_SectionPoint

  `ZoneValue`()
    - Gives the zone of tangence at address Index in the interference.

    Parameters: | Index (int) –
    Return type: | Intf_TangentZone

  `thisown`

    The membership flag

class `Intf_InterferencePolygon2d`(*args)

  Bases: `OCC.Intf.Intf_Interference`

  - Constructs an empty interference of Polygon.

  Return type: | None

  - Constructs and computes an interference between two Polygons.

  Parameters: | Obje1 (Intf_Polygon2d &) – Obje2 (Intf_Polygon2d &) –
  Return type: | None

  - Constructs and computes the auto interference of a Polygon.

  Parameters: | Obje (Intf_Polygon2d &) –
  Return type: | None

  `Perform`()
    - Computes an interference between two Polygons.

    Parameters: | Obje1 (Intf_Polygon2d &) – Obje2 (Intf_Polygon2d &) –
    Return type: | None

    - Computes the self interference of a Polygon.

    Parameters: | Obje (Intf_Polygon2d &) –
    Return type: | None

  `Pnt2dValue`()
    - Gives the geometrical 2d point of the intersection point at address <Index> in the interference.

    Parameters: | Index (int) –
    Return type: | gp_Pnt2d

  `thisown`

    The membership flag

class `Intf_Polygon2d`(*args, **kwargs)

  Bases: `object`

  `Bounding`()
    - Returns the bounding box of the polygon.

    Return type: | Bnd_Box2d

  `Closed`()
    - Returns True if the polyline is closed.

    Return type: | bool

  `DeflectionOverEstimation`()
    - Returns the tolerance of the polygon.

    Return type: | float

  `NbSegments`()
    - Returns the number of Segments in the polyline.

    Return type: | int

  `Segment`()
    - Returns the points of the segment <Index> in the Polygon.

    Parameters: | theIndex (int) – theBegin (gp_Pnt2d) – theEnd (gp_Pnt2d) –
    Return type: | void

  `thisown`

    The membership flag

class `Intf_SectionLine`(*args)

  Bases: `object`

  - Constructs an empty SectionLine.

  Return type: | None

  - Copies a SectionLine.

  Parameters: | Other (Intf_SectionLine &) –
  Return type: | None

  `Append`()
    - Adds a point at the end of the SectionLine.

    Parameters: | Pi (Intf_SectionPoint &) –
    Return type: | None

    - Concatenates the SectionLine <LS> at the end of the SectionLine <self>.

    Parameters: | LS (Intf_SectionLine &) –
    Return type: | None

  `Close`()
    - Closes the SectionLine.

    Return type: | None

  `Contains`()
    - Returns True if ThePI is in the SectionLine <self>.

    Parameters: | ThePI (Intf_SectionPoint &) –
    Return type: | bool

  `Dump`()

    Parameters: | Indent (int) –
    Return type: | None

  `GetPoint`()
    - Gives the point of intersection of address <Index> in the SectionLine.

    Parameters: | Index (int) –
    Return type: | Intf_SectionPoint

  `IsClosed`()
    - Returns True if the SectionLine is closed.

    Return type: | bool

  `IsEnd`()
    - Checks if <ThePI> is an end of the SectionLine. Returns 1 for the beginning, 2 for the end, otherwise 0.

    Parameters: | ThePI (Intf_SectionPoint &) –
    Return type: | int

  `IsEqual`()
    - Compares two SectionLines.

    Parameters: | Other (Intf_SectionLine &) –
    Return type: | bool

  `NumberOfPoints`()
    - Returns number of points in this SectionLine.

    Return type: | int

  `Prepend`()
    - Adds a point to the beginning of the SectionLine <self>.

    Parameters: | Pi (Intf_SectionPoint &) –
    Return type: | None

    - Concatenates a SectionLine <LS> at the beginning of the SectionLine <self>.

    Parameters: | LS (Intf_SectionLine &) –
    Return type: | None

  `Reverse`()
    - Reverses the order of the elements of the SectionLine.

    Return type: | None

  `thisown`

    The membership flag

class `Intf_SectionPoint`(*args)

  Bases: `object`

  Return type: | None

  - Builds a SectionPoint with the respective dimensions (vertex edge or face) of the concerned arguments and their addresses in the Topological structure.

  Parameters: | Where (gp_Pnt) – DimeO (Intf_PIType) – AddrO1 (int) – AddrO2 (int) – ParamO (float) – DimeT (Intf_PIType) – AddrT1 (int) – AddrT2 (int) – ParamT (float) – Incid (float) –
  Return type: | None

  - Builds a SectionPoint 2d with the respective dimensions (vertex or edge) of the concerned arguments and their addresses in the Topological structure.

  Parameters: | Where (gp_Pnt2d) – DimeO (Intf_PIType) – AddrO1 (int) – ParamO (float) – DimeT (Intf_PIType) – AddrT1 (int) – ParamT (float) – Incid (float) –
  Return type: | None

  `Dump`()

    Parameters: | Indent (int) –
    Return type: | None

  `Incidence`()
    - Gives the incidence at this section point. The incidence between the two triangles is given by the cosine. The best incidence is 0. (PI/2). The worst is 1. (null angle).

    Return type: | float

  `InfoFirst`()

    Parameters: | Dim (Intf_PIType &) – Add1 (int &) – Add2 (int &) – Param (float &) –
    Return type: | None

    - Gives the datas about the first argument of the Interference.

    Parameters: | Dim (Intf_PIType &) – Addr (int &) – Param (float &) –
    Return type: | None

  `InfoSecond`()

    Parameters: | Dim (Intf_PIType &) – Add1 (int &) – Add2 (int &) – Param (float &) –
    Return type: | None

    - Gives the datas about the second argument of the Interference.

    Parameters: | Dim (Intf_PIType &) – Addr (int &) – Param (float &) –
    Return type: | None

  `IsEqual`()
    - Returns True if the two SectionPoint have the same logical informations.

    Parameters: | Other (Intf_SectionPoint &) –
    Return type: | bool

  `IsOnSameEdge`()
    - Returns True if the two SectionPoints are on the same edge of the first or the second element.

    Parameters: | Other (Intf_SectionPoint &) –
    Return type: | bool

  `Merge`()
    - Merges two SectionPoints.

    Parameters: | Other (Intf_SectionPoint &) –
    Return type: | None

  `ParamOnFirst`()
    - Returns the cumulated Parameter of the SectionPoint on the first element.

    Return type: | float

  `ParamOnSecond`()
    - Returns the cumulated Parameter of the section point on the second element.

    Return type: | float

  `Pnt`()
    - Returns the location of the SectionPoint.

    Return type: | gp_Pnt

  `TypeOnFirst`()
    - Returns the type of the section point on the first element.

    Return type: | Intf_PIType

  `TypeOnSecond`()
    - Returns the type of the section point on the second element.

    Return type: | Intf_PIType

  `thisown`

    The membership flag

class `Intf_SeqOfSectionLine`(*args)

  Bases: `OCC.TCollection.TCollection_BaseSequence`

  Return type: | None
  Parameters: | Other (Intf_SeqOfSectionLine &) –
  Return type: | None

  `Append`()

    Parameters: | T (Intf_SectionLine &) – S (Intf_SeqOfSectionLine &) –
    Return type: | None
    Return type: | None

  `Assign`()

    Parameters: | Other (Intf_SeqOfSectionLine &) –
    Return type: | Intf_SeqOfSectionLine

  `ChangeValue`()

    Parameters: | Index (int) –
    Return type: | Intf_SectionLine

  `Clear`()

    Return type: | None

  `First`()

    Return type: | Intf_SectionLine

  `InsertAfter`()

    Parameters: | Index (int) – T (Intf_SectionLine &) – Index – S (Intf_SeqOfSectionLine &) –
    Return type: | None
    Return type: | None

  `InsertBefore`()

    Parameters: | Index (int) – T (Intf_SectionLine &) – Index – S (Intf_SeqOfSectionLine &) –
    Return type: | None
    Return type: | None

  `Last`()

    Return type: | Intf_SectionLine

  `Prepend`()

    Parameters: | T (Intf_SectionLine &) – S (Intf_SeqOfSectionLine &) –
    Return type: | None
    Return type: | None

  `Remove`()

    Parameters: | Index (int) – FromIndex (int) – ToIndex (int) –
    Return type: | None
    Return type: | None

  `Set`()

    Parameters: | Other (Intf_SeqOfSectionLine &) –
    Return type: | Intf_SeqOfSectionLine

  `SetValue`()

    Parameters: | Index (int) – I (Intf_SectionLine &) –
    Return type: | None

  `Split`()

    Parameters: | Index (int) – Sub (Intf_SeqOfSectionLine &) –
    Return type: | None

  `Value`()

    Parameters: | Index (int) –
    Return type: | Intf_SectionLine

  `thisown`

    The membership flag

class `Intf_SeqOfSectionPoint`(*args)

  Bases: `OCC.TCollection.TCollection_BaseSequence`

  Return type: | None
  Parameters: | Other (Intf_SeqOfSectionPoint &) –
  Return type: | None

  `Append`()

    Parameters: | T (Intf_SectionPoint &) – S (Intf_SeqOfSectionPoint &) –
    Return type: | None
    Return type: | None

  `Assign`()

    Parameters: | Other (Intf_SeqOfSectionPoint &) –
    Return type: | Intf_SeqOfSectionPoint

  `ChangeValue`()

    Parameters: | Index (int) –
    Return type: | Intf_SectionPoint

  `Clear`()

    Return type: | None

  `First`()

    Return type: | Intf_SectionPoint

  `InsertAfter`()

    Parameters: | Index (int) – T (Intf_SectionPoint &) – Index – S (Intf_SeqOfSectionPoint &) –
    Return type: | None
    Return type: | None

  `InsertBefore`()

    Parameters: | Index (int) – T (Intf_SectionPoint &) – Index – S (Intf_SeqOfSectionPoint &) –
    Return type: | None
    Return type: | None

  `Last`()

    Return type: | Intf_SectionPoint

  `Prepend`()

    Parameters: | T (Intf_SectionPoint &) – S (Intf_SeqOfSectionPoint &) –
    Return type: | None
    Return type: | None

  `Remove`()

    Parameters: | Index (int) – FromIndex (int) – ToIndex (int) –
    Return type: | None
    Return type: | None

  `Set`()

    Parameters: | Other (Intf_SeqOfSectionPoint &) –
    Return type: | Intf_SeqOfSectionPoint

  `SetValue`()

    Parameters: | Index (int) – I (Intf_SectionPoint &) –
    Return type: | None

  `Split`()

    Parameters: | Index (int) – Sub (Intf_SeqOfSectionPoint &) –
    Return type: | None

  `Value`()

    Parameters: | Index (int) –
    Return type: | Intf_SectionPoint

  `thisown`

    The membership flag

class `Intf_SeqOfTangentZone`(*args)

  Bases: `OCC.TCollection.TCollection_BaseSequence`

  Return type: | None
  Parameters: | Other (Intf_SeqOfTangentZone &) –
  Return type: | None

  `Append`()

    Parameters: | T (Intf_TangentZone &) – S (Intf_SeqOfTangentZone &) –
    Return type: | None
    Return type: | None

  `Assign`()

    Parameters: | Other (Intf_SeqOfTangentZone &) –
    Return type: | Intf_SeqOfTangentZone

  `ChangeValue`()

    Parameters: | Index (int) –
    Return type: | Intf_TangentZone

  `Clear`()

    Return type: | None

  `First`()

    Return type: | Intf_TangentZone

  `InsertAfter`()

    Parameters: | Index (int) – T (Intf_TangentZone &) – Index – S (Intf_SeqOfTangentZone &) –
    Return type: | None
    Return type: | None

  `InsertBefore`()

    Parameters: | Index (int) – T (Intf_TangentZone &) – Index – S (Intf_SeqOfTangentZone &) –
    Return type: | None
    Return type: | None

  `Last`()

    Return type: | Intf_TangentZone

  `Prepend`()

    Parameters: | T (Intf_TangentZone &) – S (Intf_SeqOfTangentZone &) –
    Return type: | None
    Return type: | None

  `Remove`()

    Parameters: | Index (int) – FromIndex (int) – ToIndex (int) –
    Return type: | None
    Return type: | None

  `Set`()

    Parameters: | Other (Intf_SeqOfTangentZone &) –
    Return type: | Intf_SeqOfTangentZone

  `SetValue`()

    Parameters: | Index (int) – I (Intf_TangentZone &) –
    Return type: | None

  `Split`()

    Parameters: | Index (int) – Sub (Intf_SeqOfTangentZone &) –
    Return type: | None

  `Value`()

    Parameters: | Index (int) –
    Return type: | Intf_TangentZone

  `thisown`

    The membership flag

class `Intf_SequenceNodeOfSeqOfSectionLine`(*args)

  Bases: `OCC.TCollection.TCollection_SeqNode`

  Parameters: | I (Intf_SectionLine &) – n (TCollection_SeqNodePtr &) – p (TCollection_SeqNodePtr &) –
  Return type: | None

  `GetHandle`()
  `Value`()

    Return type: | Intf_SectionLine

  `thisown`

    The membership flag

class `Intf_SequenceNodeOfSeqOfSectionPoint`(*args)

  Bases: `OCC.TCollection.TCollection_SeqNode`

  Parameters: | I (Intf_SectionPoint &) – n (TCollection_SeqNodePtr &) – p (TCollection_SeqNodePtr &) –
  Return type: | None

  `GetHandle`()
  `Value`()

    Return type: | Intf_SectionPoint

  `thisown`

    The membership flag

class `Intf_SequenceNodeOfSeqOfTangentZone`(*args)

  Bases: `OCC.TCollection.TCollection_SeqNode`

  Parameters: | I (Intf_TangentZone &) – n (TCollection_SeqNodePtr &) – p (TCollection_SeqNodePtr &) –
  Return type: | None

  `GetHandle`()
  `Value`()

    Return type: | Intf_TangentZone

  `thisown`

    The membership flag

class `Intf_TangentZone`(*args)

  Bases: `object`

  - Builds an empty tangent zone.

  Return type: | None

  - Copies a Tangent zone.

  Parameters: | Other (Intf_TangentZone &) –
  Return type: | None

  `Append`()
    - Adds a SectionPoint to the TangentZone.

    Parameters: | Pi (Intf_SectionPoint &) –
    Return type: | None

    - Adds the TangentZone <Tzi> to <self>.

    Parameters: | Tzi (Intf_TangentZone &) –
    Return type: | None

  `Contains`()
    - Checks if <ThePI> is in TangentZone.

    Parameters: | ThePI (Intf_SectionPoint &) –
    Return type: | bool

  `Dump`()

    Parameters: | Indent (int) –
    Return type: | None

  `GetPoint`()
    - Gives the SectionPoint of address <Index> in the TangentZone.

    Parameters: | Index (int) –
    Return type: | Intf_SectionPoint

  `HasCommonRange`()
    - Returns True if the TangentZone <Other> has a common part with <self>.

    Parameters: | Other (Intf_TangentZone &) –
    Return type: | bool

  `InfoFirst`()
    - Gives information about the first argument of the Interference. (Usable only for polygon)

    Parameters: | segMin (int &) – paraMin (float &) – segMax (int &) – paraMax (float &) –
    Return type: | None

  `InfoSecond`()
    - Gives informations about the second argument of the Interference. (Usable only for polygon)

    Parameters: | segMin (int &) – paraMin (float &) – segMax (int &) – paraMax (float &) –
    Return type: | None

  `Insert`()
    - Inserts a SectionPoint in the TangentZone.

    Parameters: | Pi (Intf_SectionPoint &) –
    Return type: | bool

  `InsertAfter`()
    - Inserts a SectionPoint after <Index> in the TangentZone.

    Parameters: | Index (int) – Pi (Intf_SectionPoint &) –
    Return type: | None

  `InsertBefore`()
    - Inserts a SectionPoint before <Index> in the TangentZone.

    Parameters: | Index (int) – Pi (Intf_SectionPoint &) –
    Return type: | None

  `IsEqual`()
    - Compares two TangentZones.

    Parameters: | Other (Intf_TangentZone &) –
    Return type: | bool

  `NumberOfPoints`()
    - Returns number of SectionPoint in this TangentZone.

    Return type: | int

  `ParamOnFirst`()
    - Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon)

    Parameters: | paraMin (float &) – paraMax (float &) –
    Return type: | None

  `ParamOnSecond`()
    - Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon)

    Parameters: | paraMin (float &) – paraMax (float &) –
    Return type: | None

  `PolygonInsert`()
    - Inserts a point in the polygonal TangentZone.

    Parameters: | Pi (Intf_SectionPoint &) –
    Return type: | None

  `RangeContains`()
    - Returns True if <ThePI> is in the parameter range of the TangentZone.

    Parameters: | ThePI (Intf_SectionPoint &) –
    Return type: | bool

  `thisown`

    The membership flag

class `Intf_Tool`(*args)

  Bases: `object`

  Return type: | None

  `BeginParam`()

    Parameters: | SegmentNum (int) –
    Return type: | float

  `EndParam`()

    Parameters: | SegmentNum (int) –
    Return type: | float

  `Hypr2dBox`()

    Parameters: | theHypr2d (gp_Hypr2d) – bounding (Bnd_Box2d &) – boxHypr (Bnd_Box2d &) –
    Return type: | None

  `HyprBox`()

    Parameters: | theHypr (gp_Hypr) – bounding (Bnd_Box &) – boxHypr (Bnd_Box &) –
    Return type: | None

  `Lin2dBox`()

    Parameters: | theLin2d (gp_Lin2d) – bounding (Bnd_Box2d &) – boxLin (Bnd_Box2d &) –
    Return type: | None

  `LinBox`()

    Parameters: | theLin (gp_Lin) – bounding (Bnd_Box &) – boxLin (Bnd_Box &) –
    Return type: | None

  `NbSegments`()

    Return type: | int

  `Parab2dBox`()

    Parameters: | theParab2d (gp_Parab2d) – bounding (Bnd_Box2d &) – boxHypr (Bnd_Box2d &) –
    Return type: | None

  `ParabBox`()

    Parameters: | theParab (gp_Parab) – bounding (Bnd_Box &) – boxHypr (Bnd_Box &) –
    Return type: | None

  `thisown`

    The membership flag

class `SwigPyIterator`(*args, **kwargs)

  Bases: `object`

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

    The membership flag

  `value`()

class `intf`

  Bases: `object`

  static `Contain`(*args)
    - Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.

    Parameters: | P1 (gp_Pnt) – P2 (gp_Pnt) – P3 (gp_Pnt) – ThePnt (gp_Pnt) –
    Return type: | bool

  static `PlaneEquation`(*args)
    - Computes the interference between two polygons in 2d. Result : points of intersections and zones of tangence. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Give the plane equation of the triangle <P1> <P2> <P3>.

    Parameters: | P1 (gp_Pnt) – P2 (gp_Pnt) – P3 (gp_Pnt) – NormalVector (gp_XYZ) – PolarDistance (float &) –
    Return type: | void

  `thisown`

    The membership flag

`intf_Contain`(*args)
  - Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.

  Parameters: | P1 (gp_Pnt) – P2 (gp_Pnt) – P3 (gp_Pnt) – ThePnt (gp_Pnt) –
  Return type: | bool

`intf_PlaneEquation`(*args)
  - Computes the interference between two polygons in 2d. Result : points of intersections and zones of tangence. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Give the plane equation of the triangle <P1> <P2> <P3>.

  Parameters: | P1 (gp_Pnt) – P2 (gp_Pnt) – P3 (gp_Pnt) – NormalVector (gp_XYZ) – PolarDistance (float &) –
  Return type: | void

`register_handle`(handle, base_object)

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