OCC.Core.Intf module¶
Intf module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intf.html
-
class
Intf_Array1OfLin
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
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>.
- param ThePnt
- type ThePnt
Intf_SectionPoint
- rtype
bool
-
GetTolerance
()¶ - Gives the tolerance used for the calculation.
- rtype
float
-
Insert
()¶ - Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.
- param TheZone
- type TheZone
Intf_TangentZone
- rtype
bool* Insert a new segment of intersection in the current list of polylines of intersection of the interference.
- param pdeb
- type pdeb
Intf_SectionPoint
- param pfin
- type pfin
Intf_SectionPoint
- rtype
None
-
LineValue
()¶ - Gives the polyline of intersection at address <Index> in the interference.
- param Index
- type Index
int
- rtype
Intf_SectionLine
-
NbSectionLines
()¶ - Gives the number of polylines of intersection in the interference.
- rtype
int
-
NbSectionPoints
()¶ - Gives the number of points of intersection in the interference.
- rtype
int
-
NbTangentZones
()¶ - Gives the number of zones of tangence in the interference.
- rtype
int
-
PntValue
()¶ - Gives the point of intersection of address Index in the interference.
- param Index
- type Index
int
- rtype
Intf_SectionPoint
-
ZoneValue
()¶ - Gives the zone of tangence at address Index in the interference.
- param Index
- type Index
int
- rtype
Intf_TangentZone
-
property
thisown
¶ The membership flag
-
-
class
Intf_InterferencePolygon2d
(*args)¶ Bases:
OCC.Core.Intf.Intf_Interference
- Constructs an empty interference of Polygon.
- rtype
None* Constructs and computes an interference between two Polygons.
- param Obje1
- type Obje1
Intf_Polygon2d
- param Obje2
- type Obje2
Intf_Polygon2d
- rtype
None* Constructs and computes the auto interference of a Polygon.
- param Obje
- type Obje
Intf_Polygon2d
- rtype
None
-
Perform
()¶ - Computes an interference between two Polygons.
- param Obje1
- type Obje1
Intf_Polygon2d
- param Obje2
- type Obje2
Intf_Polygon2d
- rtype
None* Computes the self interference of a Polygon.
- param Obje
- type Obje
Intf_Polygon2d
- rtype
None
-
Pnt2dValue
()¶ - Gives the geometrical 2d point of the intersection point at address <Index> in the interference.
- param Index
- type Index
int
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
class
Intf_Polygon2d
(*args, **kwargs)¶ Bases:
object
-
Bounding
()¶ - Returns the bounding box of the polygon.
- rtype
Bnd_Box2d
-
Closed
()¶ - Returns True if the polyline is closed.
- rtype
bool
-
DeflectionOverEstimation
()¶ - Returns the tolerance of the polygon.
- rtype
float
-
NbSegments
()¶ - Returns the number of Segments in the polyline.
- rtype
int
-
Segment
()¶ - Returns the points of the segment <Index> in the Polygon.
- param theIndex
- type theIndex
int
- param theBegin
- type theBegin
gp_Pnt2d
- param theEnd
- type theEnd
gp_Pnt2d
- rtype
void
-
property
thisown
¶ The membership flag
-
-
class
Intf_SectionLine
(*args)¶ Bases:
object
- Constructs an empty SectionLine.
- rtype
None* Copies a SectionLine.
- param Other
- type Other
Intf_SectionLine
- rtype
None
-
Append
()¶ - Adds a point at the end of the SectionLine.
- param Pi
- type Pi
Intf_SectionPoint
- rtype
None* Concatenates the SectionLine <LS> at the end of the SectionLine <self>.
- param LS
- type LS
Intf_SectionLine
- rtype
None
-
Close
()¶ - Closes the SectionLine.
- rtype
None
-
Contains
()¶ - Returns True if ThePI is in the SectionLine <self>.
- param ThePI
- type ThePI
Intf_SectionPoint
- rtype
bool
-
Dump
()¶ - Parameters
Indent –
- type Indent
int
- rtype
None
-
GetPoint
()¶ - Gives the point of intersection of address <Index> in the SectionLine.
- param Index
- type Index
int
- rtype
Intf_SectionPoint
-
IsClosed
()¶ - Returns True if the SectionLine is closed.
- rtype
bool
-
IsEnd
()¶ - Checks if <ThePI> is an end of the SectionLine. Returns 1 for the beginning, 2 for the end, otherwise 0.
- param ThePI
- type ThePI
Intf_SectionPoint
- rtype
int
-
IsEqual
()¶ - Compares two SectionLines.
- param Other
- type Other
Intf_SectionLine
- rtype
bool
-
NumberOfPoints
()¶ - Returns number of points in this SectionLine.
- rtype
int
-
Prepend
()¶ - Adds a point to the beginning of the SectionLine <self>.
- param Pi
- type Pi
Intf_SectionPoint
- rtype
None* Concatenates a SectionLine <LS> at the beginning of the SectionLine <self>.
- param LS
- type LS
Intf_SectionLine
- rtype
None
-
Reverse
()¶ - Reverses the order of the elements of the SectionLine.
- rtype
None
-
property
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. :param Where: :type Where: gp_Pnt :param DimeO: :type DimeO: Intf_PIType :param AddrO1: :type AddrO1: int :param AddrO2: :type AddrO2: int :param ParamO: :type ParamO: float :param DimeT: :type DimeT: Intf_PIType :param AddrT1: :type AddrT1: int :param AddrT2: :type AddrT2: int :param ParamT: :type ParamT: float :param Incid: :type Incid: float :rtype: None* Builds a SectionPoint 2d with the respective dimensions (vertex or edge) of the concerned arguments and their addresses in the Topological structure. :param Where: :type Where: gp_Pnt2d :param DimeO: :type DimeO: Intf_PIType :param AddrO1: :type AddrO1: int :param ParamO: :type ParamO: float :param DimeT: :type DimeT: Intf_PIType :param AddrT1: :type AddrT1: int :param ParamT: :type ParamT: float :param Incid: :type Incid: float :rtype: None
-
Dump
()¶ - Parameters
Indent –
- type Indent
int
- rtype
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).
- rtype
float
-
InfoFirst
()¶ - Parameters
Dim –
- type Dim
Intf_PIType
- param Add1
- type Add1
int
- param Add2
- type Add2
int
- param Param
- type Param
float
- rtype
None* Gives the datas about the first argument of the Interference.
- param Dim
- type Dim
Intf_PIType
- param Addr
- type Addr
int
- param Param
- type Param
float
- rtype
None
-
InfoSecond
()¶ - Parameters
Dim –
- type Dim
Intf_PIType
- param Add1
- type Add1
int
- param Add2
- type Add2
int
- param Param
- type Param
float
- rtype
None* Gives the datas about the second argument of the Interference.
- param Dim
- type Dim
Intf_PIType
- param Addr
- type Addr
int
- param Param
- type Param
float
- rtype
None
-
IsEqual
()¶ - Returns True if the two SectionPoint have the same logical informations.
- param Other
- type Other
Intf_SectionPoint
- rtype
bool
-
IsOnSameEdge
()¶ - Returns True if the two SectionPoints are on the same edge of the first or the second element.
- param Other
- type Other
Intf_SectionPoint
- rtype
bool
-
Merge
()¶ - Merges two SectionPoints.
- param Other
- type Other
Intf_SectionPoint
- rtype
None
-
ParamOnFirst
()¶ - Returns the cumulated Parameter of the SectionPoint on the first element.
- rtype
float
-
ParamOnSecond
()¶ - Returns the cumulated Parameter of the section point on the second element.
- rtype
float
-
Pnt
()¶ - Returns the location of the SectionPoint.
- rtype
gp_Pnt
-
TypeOnFirst
()¶ - Returns the type of the section point on the first element.
- rtype
Intf_PIType
-
TypeOnSecond
()¶ - Returns the type of the section point on the second element.
- rtype
Intf_PIType
-
property
thisown
¶ The membership flag
-
class
Intf_SeqOfSectionLine
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Intf_SeqOfSectionPoint
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Intf_SeqOfTangentZone
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Intf_TangentZone
(*args)¶ Bases:
object
- Builds an empty tangent zone.
- rtype
None* Copies a Tangent zone.
- param Other
- type Other
Intf_TangentZone
- rtype
None
-
Append
()¶ - Adds a SectionPoint to the TangentZone.
- param Pi
- type Pi
Intf_SectionPoint
- rtype
None* Adds the TangentZone <Tzi> to <self>.
- param Tzi
- type Tzi
Intf_TangentZone
- rtype
None
-
Contains
()¶ - Checks if <ThePI> is in TangentZone.
- param ThePI
- type ThePI
Intf_SectionPoint
- rtype
bool
-
Dump
()¶ - Parameters
Indent –
- type Indent
int
- rtype
None
-
GetPoint
()¶ - Gives the SectionPoint of address <Index> in the TangentZone.
- param Index
- type Index
int
- rtype
Intf_SectionPoint
-
HasCommonRange
()¶ - Returns True if the TangentZone <Other> has a common part with <self>.
- param Other
- type Other
Intf_TangentZone
- rtype
bool
-
InfoFirst
()¶ - Gives information about the first argument of the Interference. (Usable only for polygon)
- param segMin
- type segMin
int
- param paraMin
- type paraMin
float
- param segMax
- type segMax
int
- param paraMax
- type paraMax
float
- rtype
None
-
InfoSecond
()¶ - Gives informations about the second argument of the Interference. (Usable only for polygon)
- param segMin
- type segMin
int
- param paraMin
- type paraMin
float
- param segMax
- type segMax
int
- param paraMax
- type paraMax
float
- rtype
None
-
Insert
()¶ - Inserts a SectionPoint in the TangentZone.
- param Pi
- type Pi
Intf_SectionPoint
- rtype
bool
-
InsertAfter
()¶ - Inserts a SectionPoint after <Index> in the TangentZone.
- param Index
- type Index
int
- param Pi
- type Pi
Intf_SectionPoint
- rtype
None
-
InsertBefore
()¶ - Inserts a SectionPoint before <Index> in the TangentZone.
- param Index
- type Index
int
- param Pi
- type Pi
Intf_SectionPoint
- rtype
None
-
IsEqual
()¶ - Compares two TangentZones.
- param Other
- type Other
Intf_TangentZone
- rtype
bool
-
NumberOfPoints
()¶ - Returns number of SectionPoint in this TangentZone.
- rtype
int
-
ParamOnFirst
()¶ - Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon)
- param paraMin
- type paraMin
float
- param paraMax
- type paraMax
float
- rtype
None
-
ParamOnSecond
()¶ - Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon)
- param paraMin
- type paraMin
float
- param paraMax
- type paraMax
float
- rtype
None
-
PolygonInsert
()¶ - Inserts a point in the polygonal TangentZone.
- param Pi
- type Pi
Intf_SectionPoint
- rtype
None
-
RangeContains
()¶ - Returns True if <ThePI> is in the parameter range of the TangentZone.
- param ThePI
- type ThePI
Intf_SectionPoint
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
Intf_Tool
(*args)¶ Bases:
object
- Return type
-
BeginParam
()¶ - Parameters
SegmentNum –
- type SegmentNum
int
- rtype
float
-
EndParam
()¶ - Parameters
SegmentNum –
- type SegmentNum
int
- rtype
float
-
Hypr2dBox
()¶ - Parameters
theHypr2d –
- type theHypr2d
gp_Hypr2d
- param bounding
- type bounding
Bnd_Box2d
- param boxHypr
- type boxHypr
Bnd_Box2d
- rtype
None
-
HyprBox
()¶ - Parameters
theHypr –
- type theHypr
gp_Hypr
- param bounding
- type bounding
Bnd_Box
- param boxHypr
- type boxHypr
Bnd_Box
- rtype
None
-
Lin2dBox
()¶ - Parameters
theLin2d –
- type theLin2d
gp_Lin2d
- param bounding
- type bounding
Bnd_Box2d
- param boxLin
- type boxLin
Bnd_Box2d
- rtype
None
-
LinBox
()¶ - Parameters
theLin –
- type theLin
gp_Lin
- param bounding
- type bounding
Bnd_Box
- param boxLin
- type boxLin
Bnd_Box
- rtype
None
-
Parab2dBox
()¶ - Parameters
theParab2d –
- type theParab2d
gp_Parab2d
- param bounding
- type bounding
Bnd_Box2d
- param boxHypr
- type boxHypr
Bnd_Box2d
- rtype
None
-
ParabBox
()¶ - Parameters
theParab –
- type theParab
gp_Parab
- param bounding
- type bounding
Bnd_Box
- param boxHypr
- type boxHypr
Bnd_Box
- rtype
None
-
property
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
intf
¶ Bases:
object
-
static
Contain
()¶ - Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- param P3
- type P3
gp_Pnt
- param ThePnt
- type ThePnt
gp_Pnt
- rtype
bool
-
static
PlaneEquation
()¶ - Computes the interference between two polygons in 2d. Resultpoints 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>.
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- param P3
- type P3
gp_Pnt
- param NormalVector
- type NormalVector
gp_XYZ
- param PolarDistance
- type PolarDistance
float
- rtype
void
-
property
thisown
¶ The membership flag
-
static