OCC.Intf module

class OCC.Intf.Handle_Intf_SequenceNodeOfSeqOfSectionLine(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Intf.Handle_Intf_SequenceNodeOfSeqOfSectionPoint(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Intf.Handle_Intf_SequenceNodeOfSeqOfTangentZone(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Intf.Intf_Array1OfLin(*args)

Bases: object

Assign()
Parameters:Other (Intf_Array1OfLin &) –
Return type:Intf_Array1OfLin
ChangeValue()
Parameters:Index (Standard_Integer) –
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 (Standard_Integer) –
  • Value (gp_Lin) –
Return type:

None

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

The membership flag

class OCC.Intf.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 (Standard_Integer) –
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 (Standard_Integer) –
Return type:Intf_SectionPoint
ZoneValue()
  • Gives the zone of tangence at address Index in the interference.
Parameters:Index (Standard_Integer) –
Return type:Intf_TangentZone
thisown

The membership flag

class OCC.Intf.Intf_InterferencePolygon2d(*args)

Bases: OCC.Intf.Intf_Interference

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

The membership flag

class OCC.Intf.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 (Standard_Integer) –
  • theBegin (gp_Pnt2d) –
  • theEnd (gp_Pnt2d) –
Return type:

void

thisown

The membership flag

class OCC.Intf.Intf_SectionLine(*args)

Bases: object

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 (Standard_Integer) –
Return type:None
GetPoint()
  • Gives the point of intersection of address <Index> in the SectionLine.
Parameters:Index (Standard_Integer) –
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 OCC.Intf.Intf_SectionPoint(*args)

Bases: object

Dump()
Parameters:Indent (Standard_Integer) –
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 (Standard_Integer &) –
  • Add2 (Standard_Integer &) –
  • Param (float &) –
Return type:

None

  • Gives the datas about the first argument of the Interference.
Parameters:
  • Dim (Intf_PIType &) –
  • Addr (Standard_Integer &) –
  • Param (float &) –
Return type:

None

InfoSecond()
Parameters:
  • Dim (Intf_PIType &) –
  • Add1 (Standard_Integer &) –
  • Add2 (Standard_Integer &) –
  • Param (float &) –
Return type:

None

  • Gives the datas about the second argument of the Interference.
Parameters:
  • Dim (Intf_PIType &) –
  • Addr (Standard_Integer &) –
  • 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 OCC.Intf.Intf_SeqOfSectionLine

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:Intf_SectionLine
Clear()
Return type:None
First()
Return type:Intf_SectionLine
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Intf_SectionLine &) –
  • Index
  • S (Intf_SeqOfSectionLine &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Intf_SeqOfSectionLine &) –
Return type:Intf_SeqOfSectionLine
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Intf_SectionLine &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Intf_SeqOfSectionLine &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Intf_SectionLine
thisown

The membership flag

class OCC.Intf.Intf_SeqOfSectionPoint

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:Intf_SectionPoint
Clear()
Return type:None
First()
Return type:Intf_SectionPoint
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Intf_SectionPoint &) –
  • Index
  • S (Intf_SeqOfSectionPoint &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Intf_SeqOfSectionPoint &) –
Return type:Intf_SeqOfSectionPoint
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Intf_SectionPoint &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Intf_SeqOfSectionPoint &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Intf_SectionPoint
thisown

The membership flag

class OCC.Intf.Intf_SeqOfTangentZone

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:Intf_TangentZone
Clear()
Return type:None
First()
Return type:Intf_TangentZone
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Intf_TangentZone &) –
  • Index
  • S (Intf_SeqOfTangentZone &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Intf_SeqOfTangentZone &) –
Return type:Intf_SeqOfTangentZone
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Intf_TangentZone &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Intf_SeqOfTangentZone &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Intf_TangentZone
thisown

The membership flag

class OCC.Intf.Intf_SequenceNodeOfSeqOfSectionLine(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Intf_SequenceNodeOfSeqOfSectionLine_GetHandle(Intf_SequenceNodeOfSeqOfSectionLine self) -> Handle_Intf_SequenceNodeOfSeqOfSectionLine

Value()
Return type:Intf_SectionLine
thisown

The membership flag

class OCC.Intf.Intf_SequenceNodeOfSeqOfSectionPoint(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Intf_SequenceNodeOfSeqOfSectionPoint_GetHandle(Intf_SequenceNodeOfSeqOfSectionPoint self) -> Handle_Intf_SequenceNodeOfSeqOfSectionPoint

Value()
Return type:Intf_SectionPoint
thisown

The membership flag

class OCC.Intf.Intf_SequenceNodeOfSeqOfTangentZone(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Intf_SequenceNodeOfSeqOfTangentZone_GetHandle(Intf_SequenceNodeOfSeqOfTangentZone self) -> Handle_Intf_SequenceNodeOfSeqOfTangentZone

Value()
Return type:Intf_TangentZone
thisown

The membership flag

class OCC.Intf.Intf_TangentZone(*args)

Bases: object

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 (Standard_Integer) –
Return type:None
GetPoint()
  • Gives the SectionPoint of address <Index> in the TangentZone.
Parameters:Index (Standard_Integer) –
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 (Standard_Integer &) –
  • paraMin (float &) –
  • segMax (Standard_Integer &) –
  • paraMax (float &) –
Return type:

None

InfoSecond()
  • Gives informations about the second argument of the Interference. (Usable only for polygon)
Parameters:
  • segMin (Standard_Integer &) –
  • paraMin (float &) –
  • segMax (Standard_Integer &) –
  • 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 (Standard_Integer) –
  • Pi (Intf_SectionPoint &) –
Return type:

None

InsertBefore()
  • Inserts a SectionPoint before <Index> in the TangentZone.
Parameters:
  • Index (Standard_Integer) –
  • 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 OCC.Intf.Intf_Tool

Bases: object

BeginParam()
Parameters:SegmentNum (Standard_Integer) –
Return type:float
EndParam()
Parameters:SegmentNum (Standard_Integer) –
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 OCC.Intf.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class OCC.Intf.intf(*args, **kwargs)

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 two polygon in 3d. Section points, common perpendicular and projections. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Compute the interference between two polyhedron. Points of intersection , polylines 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

OCC.Intf.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

OCC.Intf.intf_PlaneEquation(*args)
  • Computes the interference between two polygons in 2d. Result : points of intersections and zones of tangence. Computes the interference between two polygon in 3d. Section points, common perpendicular and projections. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Compute the interference between two polyhedron. Points of intersection , polylines 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