OCC.Intf module¶
Interference computation between polygons, lines andpolyhedra with only triangular facets. These objectsare polygonal representations of complex curves andtriangulated representations of complex surfaces.
-
class
Handle_Intf_SequenceNodeOfSeqOfSectionLine
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Intf_SequenceNodeOfSeqOfSectionPoint
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Intf_SequenceNodeOfSeqOfTangentZone
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Intf_Array1OfLin
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (Intf_Array1OfLin &) – Return type: Intf_Array1OfLin
-
Set
()¶ Parameters: Other (Intf_Array1OfLin &) – Return type: Intf_Array1OfLin
-
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
-
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:
-
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
-
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: - 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: - 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
-
Segment
()¶ - Returns the points of the segment <Index> in the Polygon.
Parameters: 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
-
Contains
()¶ - Returns True if ThePI is in the SectionLine <self>.
Parameters: ThePI (Intf_SectionPoint &) – Return type: bool
-
GetPoint
()¶ - Gives the point of intersection of address <Index> in the SectionLine.
Parameters: Index (int) – Return type: Intf_SectionPoint
-
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
-
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
-
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: Return type: - Builds a SectionPoint 2d with the respective dimensions (vertex or edge) of the concerned arguments and their addresses in the Topological structure.
Parameters: Return type: -
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: - Gives the datas about the first argument of the Interference.
Parameters: - Dim (Intf_PIType &) –
- Addr (int &) –
- Param (float &) –
Return type:
-
InfoSecond
()¶ Parameters: - Dim (Intf_PIType &) –
- Add1 (int &) –
- Add2 (int &) –
- Param (float &) –
Return type: - Gives the datas about the second argument of the Interference.
Parameters: - Dim (Intf_PIType &) –
- Addr (int &) –
- Param (float &) –
Return type:
-
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
-
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
-
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: Return type:
-
Assign
()¶ Parameters: Other (Intf_SeqOfSectionLine &) – Return type: Intf_SeqOfSectionLine
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Intf_SectionLine
-
First
()¶ Return type: Intf_SectionLine
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Intf_SectionLine &) –
- Index –
- S (Intf_SeqOfSectionLine &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Intf_SectionLine &) –
- Index –
- S (Intf_SeqOfSectionLine &) –
Return type: Return type:
-
Last
()¶ Return type: Intf_SectionLine
-
Prepend
()¶ Parameters: - T (Intf_SectionLine &) –
- S (Intf_SeqOfSectionLine &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Intf_SeqOfSectionLine &) – Return type: Intf_SeqOfSectionLine
-
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: Return type:
-
Assign
()¶ Parameters: Other (Intf_SeqOfSectionPoint &) – Return type: Intf_SeqOfSectionPoint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Intf_SectionPoint
-
First
()¶ Return type: Intf_SectionPoint
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Intf_SectionPoint &) –
- Index –
- S (Intf_SeqOfSectionPoint &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Intf_SectionPoint &) –
- Index –
- S (Intf_SeqOfSectionPoint &) –
Return type: Return type:
-
Last
()¶ Return type: Intf_SectionPoint
-
Prepend
()¶ Parameters: - T (Intf_SectionPoint &) –
- S (Intf_SeqOfSectionPoint &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Intf_SeqOfSectionPoint &) – Return type: Intf_SeqOfSectionPoint
-
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: Return type:
-
Assign
()¶ Parameters: Other (Intf_SeqOfTangentZone &) – Return type: Intf_SeqOfTangentZone
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Intf_TangentZone
-
First
()¶ Return type: Intf_TangentZone
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Intf_TangentZone &) –
- Index –
- S (Intf_SeqOfTangentZone &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Intf_TangentZone &) –
- Index –
- S (Intf_SeqOfTangentZone &) –
Return type: Return type:
-
Last
()¶ Return type: Intf_TangentZone
-
Prepend
()¶ Parameters: - T (Intf_TangentZone &) –
- S (Intf_SeqOfTangentZone &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Intf_SeqOfTangentZone &) – Return type: Intf_SeqOfTangentZone
-
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: -
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: -
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: -
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
-
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:
-
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:
-
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:
-
InsertBefore
()¶ - Inserts a SectionPoint before <Index> in the TangentZone.
Parameters: - Index (int) –
- Pi (Intf_SectionPoint &) –
Return type:
-
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:
-
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:
-
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 -
Hypr2dBox
()¶ Parameters: - theHypr2d (gp_Hypr2d) –
- bounding (Bnd_Box2d &) –
- boxHypr (Bnd_Box2d &) –
Return type:
-
HyprBox
()¶ Parameters: - theHypr (gp_Hypr) –
- bounding (Bnd_Box &) –
- boxHypr (Bnd_Box &) –
Return type:
-
Lin2dBox
()¶ Parameters: - theLin2d (gp_Lin2d) –
- bounding (Bnd_Box2d &) –
- boxLin (Bnd_Box2d &) –
Return type:
-
Parab2dBox
()¶ Parameters: - theParab2d (gp_Parab2d) –
- bounding (Bnd_Box2d &) –
- boxHypr (Bnd_Box2d &) –
Return type:
-
ParabBox
()¶ Parameters: - theParab (gp_Parab) –
- bounding (Bnd_Box &) –
- boxHypr (Bnd_Box &) –
Return type:
-
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
()¶ - Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.
Parameters: Return type:
-
static
PlaneEquation
()¶ - 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: Return type: void
-
thisown
¶ The membership flag
-
static
-
intf_Contain
()¶ - Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.
Parameters: Return type:
-
intf_PlaneEquation
()¶ - 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: Return type: void
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases