OCC.Core.MAT module¶
MAT module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_mat.html
-
class
MAT_Arc
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Parameters
ArcIndex –
- type ArcIndex
int
- param GeomIndex
- type GeomIndex
int
- param FirstElement
- type FirstElement
MAT_BasicElt
- param SecondElement
- type SecondElement
MAT_BasicElt
- rtype
None
-
static
DownCast
(t)¶
-
FirstElement
()¶ - Returns one of the BasicElt equidistant from <self>.
- rtype
opencascade::handle<MAT_BasicElt>
-
FirstNode
()¶ - Returns one Node extremity of <self>.
- rtype
opencascade::handle<MAT_Node>
-
GeomIndex
()¶ - Returns the index associated of the geometric representation of <self>.
- rtype
int
-
HasNeighbour
()¶ - Returnst True is there is an arc linked to the Node <aNode> located on the side <aSide> of <self>; if <aNode> is not on <self>
- param aNode
- type aNode
MAT_Node
- param aSide
- type aSide
MAT_Side
- rtype
bool
-
Index
()¶ - Returns the index of <self> in Graph.theArcs.
- rtype
int
-
Neighbour
()¶ - Returns the first arc linked to the Node <aNode> located on the side <aSide> of <self>; if HasNeighbour() returns False.
- param aNode
- type aNode
MAT_Node
- param aSide
- type aSide
MAT_Side
- rtype
opencascade::handle<MAT_Arc>
-
SecondElement
()¶ - Returns the other BasicElt equidistant from <self>.
- rtype
opencascade::handle<MAT_BasicElt>
-
SecondNode
()¶ - Returns the other Node extremity of <self>.
- rtype
opencascade::handle<MAT_Node>
-
SetFirstArc
()¶ - Parameters
aSide –
- type aSide
MAT_Side
- param anArc
- type anArc
MAT_Arc
- rtype
None
-
SetFirstElement
()¶ - Parameters
aBasicElt –
- type aBasicElt
MAT_BasicElt
- rtype
None
-
SetFirstNode
()¶ - Parameters
aNode –
- type aNode
MAT_Node
- rtype
None
-
SetGeomIndex
()¶ - Parameters
anInteger –
- type anInteger
int
- rtype
None
-
SetIndex
()¶ - Parameters
anInteger –
- type anInteger
int
- rtype
None
-
SetNeighbour
()¶ - Parameters
aSide –
- type aSide
MAT_Side
- param aNode
- type aNode
MAT_Node
- param anArc
- type anArc
MAT_Arc
- rtype
None
-
SetSecondArc
()¶ - Parameters
aSide –
- type aSide
MAT_Side
- param anArc
- type anArc
MAT_Arc
- rtype
None
-
SetSecondElement
()¶ - Parameters
aBasicElt –
- type aBasicElt
MAT_BasicElt
- rtype
None
-
SetSecondNode
()¶ - Parameters
aNode –
- type aNode
MAT_Node
- rtype
None
-
TheOtherNode
()¶ - an Arc has two Node, if <aNode> egal one Returns the other. //! if <aNode> is not oh <self>
- param aNode
- type aNode
MAT_Node
- rtype
opencascade::handle<MAT_Node>
-
property
thisown
¶ The membership flag
-
class
MAT_BasicElt
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructor, <anInteger> is the <index> of <self>.
- param anInteger
- type anInteger
int
- rtype
None
-
static
DownCast
(t)¶
-
EndArc
()¶ - Return <endArcLeft> or <endArcRight> corresponding to <aSide>.
- rtype
opencascade::handle<MAT_Arc>
-
GeomIndex
()¶ - Return the <GeomIndex> of <self>.
- rtype
int
-
Index
()¶ - Return the <index> of <self> in Graph.TheBasicElts.
- rtype
int
-
SetEndArc
()¶ - Parameters
anArc –
- type anArc
MAT_Arc
- rtype
None
-
SetGeomIndex
()¶ - Parameters
anInteger –
- type anInteger
int
- rtype
None
-
SetIndex
()¶ - Parameters
anInteger –
- type anInteger
int
- rtype
None
-
SetStartArc
()¶ - Parameters
anArc –
- type anArc
MAT_Arc
- rtype
None
-
StartArc
()¶ - Return <startArcLeft> or <startArcRight> corresponding to <aSide>.
- rtype
opencascade::handle<MAT_Arc>
-
property
thisown
¶ The membership flag
-
class
MAT_Bisector
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
-
AddBisector
()¶ - Parameters
abisector –
- type abisector
MAT_Bisector
- rtype
None
-
BisectorNumber
()¶ - Parameters
anumber –
- type anumber
int
- rtype
None:rtype: int
-
DistIssuePoint
()¶ - Parameters
areal –
- type areal
float
- rtype
None:rtype: float
-
static
DownCast
(t)¶
-
Dump
()¶ - Parameters
ashift –
- type ashift
int
- param alevel
- type alevel
int
- rtype
None
-
EndPoint
()¶ - Parameters
apoint –
- type apoint
int
- rtype
None:rtype: int
-
FirstBisector
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
FirstEdge
()¶ - Parameters
anedge –
- type anedge
MAT_Edge
- rtype
None:rtype: opencascade::handle<MAT_Edge>
-
FirstParameter
()¶ - Parameters
aparameter –
- type aparameter
float
- rtype
None:rtype: float
-
FirstVector
()¶ - Parameters
avector –
- type avector
int
- rtype
None:rtype: int
-
IndexNumber
()¶ - Parameters
anumber –
- type anumber
int
- rtype
None:rtype: int
-
IssuePoint
()¶ - Parameters
apoint –
- type apoint
int
- rtype
None:rtype: int
-
LastBisector
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
List
()¶ - Return type
opencascade::handle<MAT_ListOfBisector>
-
SecondEdge
()¶ - Parameters
anedge –
- type anedge
MAT_Edge
- rtype
None:rtype: opencascade::handle<MAT_Edge>
-
SecondParameter
()¶ - Parameters
aparameter –
- type aparameter
float
- rtype
None:rtype: float
-
SecondVector
()¶ - Parameters
avector –
- type avector
int
- rtype
None:rtype: int
-
Sense
()¶ - Parameters
asense –
- type asense
float
- rtype
None:rtype: float
-
property
thisown
¶ The membership flag
-
class
MAT_DataMapOfIntegerArc
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MAT_DataMapOfIntegerBasicElt
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MAT_DataMapOfIntegerBisector
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MAT_DataMapOfIntegerNode
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
Keys
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
MAT_Edge
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
-
Distance
()¶ - Parameters
adistance –
- type adistance
float
- rtype
None:rtype: float
-
static
DownCast
(t)¶
-
Dump
()¶ - Parameters
ashift –
- type ashift
int
- param alevel
- type alevel
int
- rtype
None
-
EdgeNumber
()¶ - Parameters
anumber –
- type anumber
int
- rtype
None:rtype: int
-
FirstBisector
()¶ - Parameters
abisector –
- type abisector
MAT_Bisector
- rtype
None:rtype: opencascade::handle<MAT_Bisector>
-
IntersectionPoint
()¶ - Parameters
apoint –
- type apoint
int
- rtype
None:rtype: int
-
SecondBisector
()¶ - Parameters
abisector –
- type abisector
MAT_Bisector
- rtype
None:rtype: opencascade::handle<MAT_Bisector>
-
property
thisown
¶ The membership flag
-
class
MAT_Graph
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Empty constructor.
- rtype
None
-
Arc
()¶ - Return the Arc of index <Index> in <theArcs>.
- param Index
- type Index
int
- rtype
opencascade::handle<MAT_Arc>
-
BasicElt
()¶ - Return the BasicElt of index <Index> in <theBasicElts>.
- param Index
- type Index
int
- rtype
opencascade::handle<MAT_BasicElt>
-
ChangeBasicElt
()¶ - Parameters
Index –
- type Index
int
- rtype
opencascade::handle<MAT_BasicElt>
-
ChangeBasicElts
()¶ - Parameters
NewMap –
- type NewMap
MAT_DataMapOfIntegerBasicElt
- rtype
None
-
static
DownCast
(t)¶
-
FusionOfBasicElts
()¶ - Merge two BasicElts. The End of the BasicElt Elt1 of IndexElt1 becomes The End of the BasicElt Elt2 of IndexElt2. Elt2 is replaced in the arcs by Elt1, Elt2 is eliminated. //! <MergeArc1> is True if the fusion of the BasicElts => a fusion of two Arcs which separated the same elements. In this case <GeomIndexArc1> and <GeomIndexArc2> are the Geometric Index of this arcs. //! If the BasicElt corresponds to a close line , the StartArc and the EndArc of Elt1 can separate the same elements . In this case there is a fusion of this arcs, <MergeArc2> is true and <GeomIndexArc3> and <GeomIndexArc4> are the Geometric Index of this arcs.
- param IndexElt1
- type IndexElt1
int
- param IndexElt2
- type IndexElt2
int
- param MergeArc1
- type MergeArc1
bool
- param GeomIndexArc1
- type GeomIndexArc1
int
- param GeomIndexArc2
- type GeomIndexArc2
int
- param MergeArc2
- type MergeArc2
bool
- param GeomIndexArc3
- type GeomIndexArc3
int
- param GeomIndexArc4
- type GeomIndexArc4
int
- rtype
None
-
Node
()¶ - Return the Node of index <Index> in <theNodes>.
- param Index
- type Index
int
- rtype
opencascade::handle<MAT_Node>
-
NumberOfArcs
()¶ - Return the number of arcs of <self>.
- rtype
int
-
NumberOfBasicElts
()¶ - Return the number of basic elements of <self>.
- rtype
int
-
NumberOfInfiniteNodes
()¶ - Return the number of infinites nodes of <self>.
- rtype
int
-
NumberOfNodes
()¶ - Return the number of nodes of <self>.
- rtype
int
-
Perform
()¶ - Construct <self> from the result of the method <CreateMat> of the class <MAT> from <MAT>. //! <SemiInfinite>if some bisector are infinites. <TheRoots>Set of the bisectors. <NbBasicElts>Number of Basic Elements. <NbArcs>Number of Arcs = Number of Bisectors.
- param SemiInfinite
- type SemiInfinite
bool
- param TheRoots
- type TheRoots
MAT_ListOfBisector
- param NbBasicElts
- type NbBasicElts
int
- param NbArcs
- type NbArcs
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MAT_ListOfBisector
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
-
BackAdd
()¶ - Parameters
anitem –
- type anitem
MAT_Bisector
- rtype
None
-
Brackets
()¶ - Parameters
anindex –
- type anindex
int
- rtype
opencascade::handle<MAT_Bisector>
-
Current
()¶ - Return type
opencascade::handle<MAT_Bisector>:param anitem: :type anitem: MAT_Bisector :rtype: None
-
static
DownCast
(t)¶
-
Dump
()¶ - Parameters
ashift –
- type ashift
int
- param alevel
- type alevel
int
- rtype
None
-
FirstItem
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
FrontAdd
()¶ - Parameters
anitem –
- type anitem
MAT_Bisector
- rtype
None
-
Init
()¶ - Parameters
aniten –
- type aniten
MAT_Bisector
- rtype
None
-
LastItem
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
LinkAfter
()¶ - Parameters
anitem –
- type anitem
MAT_Bisector
- rtype
None
-
LinkBefore
()¶ - Parameters
anitem –
- type anitem
MAT_Bisector
- rtype
None
-
NextItem
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
PreviousItem
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
property
thisown
¶ The membership flag
-
class
MAT_ListOfEdge
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
-
BackAdd
()¶ - Parameters
anitem –
- type anitem
MAT_Edge
- rtype
None
-
Brackets
()¶ - Parameters
anindex –
- type anindex
int
- rtype
opencascade::handle<MAT_Edge>
-
Current
()¶ - Return type
opencascade::handle<MAT_Edge>:param anitem: :type anitem: MAT_Edge :rtype: None
-
static
DownCast
(t)¶
-
Dump
()¶ - Parameters
ashift –
- type ashift
int
- param alevel
- type alevel
int
- rtype
None
-
FirstItem
()¶ - Return type
opencascade::handle<MAT_Edge>
-
FrontAdd
()¶ - Parameters
anitem –
- type anitem
MAT_Edge
- rtype
None
-
Init
()¶ - Parameters
aniten –
- type aniten
MAT_Edge
- rtype
None
-
LastItem
()¶ - Return type
opencascade::handle<MAT_Edge>
-
LinkAfter
()¶ - Parameters
anitem –
- type anitem
MAT_Edge
- rtype
None
-
LinkBefore
()¶ - Parameters
anitem –
- type anitem
MAT_Edge
- rtype
None
-
NextItem
()¶ - Return type
opencascade::handle<MAT_Edge>
-
PreviousItem
()¶ - Return type
opencascade::handle<MAT_Edge>
-
property
thisown
¶ The membership flag
-
class
MAT_Node
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Parameters
GeomIndex –
- type GeomIndex
int
- param LinkedArc
- type LinkedArc
MAT_Arc
- param Distance
- type Distance
float
- rtype
None
-
static
DownCast
(t)¶
-
GeomIndex
()¶ - Returns the index associated of the geometric representation of <self>.
- rtype
int
-
Index
()¶ - Returns the index associated of the node
- rtype
int
-
Infinite
()¶ - Returns True if the distance of <self> is Infinite
- rtype
bool
-
LinkedArcs
()¶ - Returns in <S> the Arcs linked to <self>.
- param S
- type S
MAT_SequenceOfArc
- rtype
None
-
NearElts
()¶ - Returns in <S> the BasicElts equidistant to <self>.
- param S
- type S
MAT_SequenceOfBasicElt
- rtype
None
-
OnBasicElt
()¶ - Returns True if <self> belongs to the figure.
- rtype
bool
-
PendingNode
()¶ - Returns True if <self> is a pending Node. (iethe number of Arc Linked = 1)
- rtype
bool
-
SetIndex
()¶ - Set the index associated of the node
- param anIndex
- type anIndex
int
- rtype
None
-
SetLinkedArc
()¶ - Parameters
anArc –
- type anArc
MAT_Arc
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MAT_SequenceOfArc
(*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
MAT_SequenceOfBasicElt
(*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
MAT_TListNodeOfListOfBisector
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
None:param anitem: :type anitem: MAT_Bisector :rtype: None
-
static
DownCast
(t)¶
-
GetItem
()¶ - Return type
opencascade::handle<MAT_Bisector>
-
Next
()¶ - Return type
opencascade::handle<MAT_TListNodeOfListOfBisector>:param atlistnode: :type atlistnode: MAT_TListNodeOfListOfBisector :rtype: None
-
Previous
()¶ - Return type
opencascade::handle<MAT_TListNodeOfListOfBisector>:param atlistnode: :type atlistnode: MAT_TListNodeOfListOfBisector :rtype: None
-
SetItem
()¶ - Parameters
anitem –
- type anitem
MAT_Bisector
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MAT_TListNodeOfListOfEdge
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
None:param anitem: :type anitem: MAT_Edge :rtype: None
-
static
DownCast
(t)¶
-
GetItem
()¶ - Return type
opencascade::handle<MAT_Edge>
-
Next
()¶ - Return type
opencascade::handle<MAT_TListNodeOfListOfEdge>:param atlistnode: :type atlistnode: MAT_TListNodeOfListOfEdge :rtype: None
-
Previous
()¶ - Return type
opencascade::handle<MAT_TListNodeOfListOfEdge>:param atlistnode: :type atlistnode: MAT_TListNodeOfListOfEdge :rtype: None
-
SetItem
()¶ - Parameters
anitem –
- type anitem
MAT_Edge
- rtype
None
-
property
thisown
¶ The membership flag
-
class
MAT_Zone
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
None* Compute the frontier of the Zone of proximity. :param aBasicElt: :type aBasicElt: MAT_BasicElt :rtype: None
-
ArcOnFrontier
()¶ - Return the Arc number <Index> on the frontier. of <self>.
- param Index
- type Index
int
- rtype
opencascade::handle<MAT_Arc>
-
static
DownCast
(t)¶
-
Limited
()¶ - Return True if <self> is Limited.
- rtype
bool
-
NoEmptyZone
()¶ - Return True if <self> is not empty .
- rtype
bool
-
NumberOfArcs
()¶ - Return the number Of Arcs On the frontier of <self>.
- rtype
int
-
Perform
()¶ - Compute the frontier of the Zone of proximity.
- param aBasicElt
- type aBasicElt
MAT_BasicElt
- rtype
None
-
property
thisown
¶ The membership flag