OCC.Core.MAT2d module

MAT2d module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_mat2d.html

class MAT2d_Array2OfConnexion(*args)

Bases: object

Assign()
ChangeValue()
ColLength()
Init()
IsDeletable()
Length()
LowerCol()
LowerRow()
Move()
NbColumns()
NbRows()
Resize()
RowLength()
Set()
SetValue()
Size()
UpperCol()
UpperRow()
Value()
property thisown

The membership flag

class MAT2d_BiInt(*args)

Bases: object

Parameters

I1

type I1

int

param I2

type I2

int

rtype

None

FirstIndex()
Return type

int:param I1: :type I1: int :rtype: None

IsEqual()
Parameters

B

type B

MAT2d_BiInt

rtype

bool

SecondIndex()
Return type

int:param I2: :type I2: int :rtype: None

property thisown

The membership flag

class MAT2d_Circuit(*args)

Bases: OCC.Core.Standard.Standard_Transient

Parameters

aJoinType – default value is GeomAbs_Arc :type aJoinType: GeomAbs_JoinType :param IsOpenResult: default value is Standard_False :type IsOpenResult: bool :rtype: None

Connexion()
  • Returns the Connexion on the item <Index> in me.
    param Index

    type Index

    int

    rtype

    opencascade::handle<MAT2d_Connexion>

ConnexionOn()
  • Returns <True> is there is a connexion on the item <Index> in <self>.
    param Index

    type Index

    int

    rtype

    bool

static DownCast(t)
LineLength()
  • Returns the number of items on the line <IndexLine>.
    param IndexLine

    type IndexLine

    int

    rtype

    int

NumberOfItems()
  • Returns the Number of Items .
    rtype

    int

Perform()
Parameters

aFigure

type aFigure

MAT2d_SequenceOfSequenceOfGeometry

param IsClosed

type IsClosed

TColStd_SequenceOfBoolean

param IndRefLine

type IndRefLine

int

param Trigo

type Trigo

bool

rtype

None

RefToEqui()
  • Returns the set of index of the items in <self>corresponding to the curve <IndCurve> on the line <IndLine> from the initial figure.
    param IndLine

    type IndLine

    int

    param IndCurve

    type IndCurve

    int

    rtype

    TColStd_SequenceOfInteger

Value()
  • Returns the item at position <Index> in <self>.
    param Index

    type Index

    int

    rtype

    opencascade::handle<Geom2d_Geometry>

property thisown

The membership flag

class MAT2d_Connexion(*args)

Bases: OCC.Core.Standard.Standard_Transient

Return type

None:param LineA: :type LineA: int :param LineB: :type LineB: int :param ItemA: :type ItemA: int :param ItemB: :type ItemB: int :param Distance: :type Distance: float :param ParameterOnA: :type ParameterOnA: float :param ParameterOnB: :type ParameterOnB: float :param PointA: :type PointA: gp_Pnt2d :param PointB: :type PointB: gp_Pnt2d :rtype: None

Distance()
  • Returns the distance between the two points.
    rtype

    float:param aDistance:

    type aDistance

    float

    rtype

    None

static DownCast(t)
Dump()
  • Print <self>.
    param Deep

    default value is 0

    type Deep

    int

    param Offset

    default value is 0

    type Offset

    int

    rtype

    None

IndexFirstLine()
  • Returns the Index on the first line.
    rtype

    int:param anIndex:

    type anIndex

    int

    rtype

    None

IndexItemOnFirst()
  • Returns the Index of the item on the first line.
    rtype

    int:param anIndex:

    type anIndex

    int

    rtype

    None

IndexItemOnSecond()
  • Returns the Index of the item on the second line.
    rtype

    int:param anIndex:

    type anIndex

    int

    rtype

    None

IndexSecondLine()
  • Returns the Index on the Second line.
    rtype

    int:param anIndex:

    type anIndex

    int

    rtype

    None

IsAfter()
  • Returns <True> if my firstPoint is on the same line than the firstpoint of <aConnexion> and my firstpoint is after the firstpoint of <aConnexion> on the line. <aSense> = 1 if <aConnexion> is on the Left of its firstline, else <aSense> = -1.
    param aConnexion

    type aConnexion

    MAT2d_Connexion

    param aSense

    type aSense

    float

    rtype

    bool

ParameterOnFirst()
  • Returns the parameter of the point on the firstline.
    rtype

    float:param aParameter:

    type aParameter

    float

    rtype

    None

ParameterOnSecond()
  • Returns the parameter of the point on the secondline.
    rtype

    float:param aParameter:

    type aParameter

    float

    rtype

    None

PointOnFirst()
  • Returns the point on the firstline.
    rtype

    gp_Pnt2d:param aPoint:

    type aPoint

    gp_Pnt2d

    rtype

    None

PointOnSecond()
  • Returns the point on the secondline.
    rtype

    gp_Pnt2d:param aPoint:

    type aPoint

    gp_Pnt2d

    rtype

    None

Reverse()
  • Returns the reverse connexion of <self>. the firstpoint is the secondpoint. the secondpoint is the firstpoint.
    rtype

    opencascade::handle<MAT2d_Connexion>

property thisown

The membership flag

class MAT2d_DataMapOfBiIntInteger(*args)

Bases: object

Assign()
Bind()
Bound()
ChangeFind()
ChangeSeek()
Clear()
Exchange()
Find()
IsBound()
ReSize()
Seek()
Set()
Size()
UnBind()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class MAT2d_DataMapOfBiIntSequenceOfInteger(*args)

Bases: object

Assign()
Bind()
Bound()
ChangeFind()
ChangeSeek()
Clear()
Exchange()
Find()
IsBound()
ReSize()
Seek()
Set()
Size()
UnBind()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class MAT2d_DataMapOfIntegerBisec(*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 MAT2d_DataMapOfIntegerConnexion(*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 MAT2d_DataMapOfIntegerPnt2d(*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 MAT2d_DataMapOfIntegerSequenceOfConnexion(*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 MAT2d_DataMapOfIntegerVec2d(*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 MAT2d_MapBiIntHasher

Bases: object

static HashCode()
  • Computes a hash code for the given key, in the range [1, theUpperBound] @param theKey the key which hash code is to be computed @param theUpperBound the upper bound of the range a computing hash code must be within returns a computed hash code, in the range [1, theUpperBound]
    param theKey

    type theKey

    MAT2d_BiInt

    param theUpperBound

    type theUpperBound

    int

    rtype

    int

static IsEqual()
Parameters

Key1

type Key1

MAT2d_BiInt

param Key2

type Key2

MAT2d_BiInt

rtype

bool

property thisown

The membership flag

class MAT2d_Mat2d(*args)

Bases: object

  • Empty construtor.
    param IsOpenResult

    default value is Standard_False

    type IsOpenResult

    bool

    rtype

    None

CreateMat()
  • Algoritm of computation of the bisecting locus.
    param aTool

    type aTool

    MAT2d_Tool2d

    rtype

    None

CreateMatOpen()
  • Algoritm of computation of the bisecting locus for open wire.
    param aTool

    type aTool

    MAT2d_Tool2d

    rtype

    None

Init()
  • Initialize an iterator on the set of the roots of the trees of bisectors.
    rtype

    None

IsDone()
  • Returns <True> if CreateMat has succeeded.
    rtype

    bool

More()
  • Return False if there is no more roots.
    rtype

    bool

Next()
  • Move to the next root.
    rtype

    None

NumberOfBisectors()
  • Returns the total number of bisectors.
    rtype

    int

SemiInfinite()
  • Returns True if there are semi_infinite bisectors. So there is a tree for each semi_infinte bisector.
    rtype

    bool

bisector()
  • Returns the current root.
    rtype

    opencascade::handle<MAT_Bisector>

property thisown

The membership flag

class MAT2d_MiniPath(*args)

Bases: object

Return type

None

ConnexionsFrom()
  • Returns the connexions which start on line designed by <Index>.
    param Index

    type Index

    int

    rtype

    MAT2d_SequenceOfConnexion

Father()
  • Returns the connexion which ends on line designed by <Index>.
    param Index

    type Index

    int

    rtype

    opencascade::handle<MAT2d_Connexion>

IsConnexionsFrom()
  • Returns <True> if there is one Connexion which starts on line designed by <Index>.
    param Index

    type Index

    int

    rtype

    bool

IsRoot()
  • Returns <True> if the line designed by <Index> is the root.
    param Index

    type Index

    int

    rtype

    bool

Path()
  • Returns the sequence of connexions corresponding to the path.
    rtype

    MAT2d_SequenceOfConnexion

Perform()
  • Computes the path to link the lines in <Figure>. the path starts on the line of index <IndStart> <Sense> = True if the Circuit turns in the trigonometric sense.
    param Figure

    type Figure

    MAT2d_SequenceOfSequenceOfGeometry

    param IndStart

    type IndStart

    int

    param Sense

    type Sense

    bool

    rtype

    None

RunOnConnexions()
  • Run on the set of connexions to compute the path. the path is an exploration of the tree which contains the connexions and their reverses. if the tree of connexions is A / | B E / | | C D F //! the path is A->B, B->C, C->B, B->D, D->B, B->A, A->E, E->F, F->E, E->A.
    rtype

    None

property thisown

The membership flag

class MAT2d_SequenceOfConnexion(*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 MAT2d_SequenceOfSequenceOfCurve(*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 MAT2d_SequenceOfSequenceOfGeometry(*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 MAT2d_Tool2d(*args)

Bases: object

  • Empty Constructor.
    rtype

    None

BisecFusion()
Parameters

Index1

type Index1

int

param Index2

type Index2

int

rtype

None

ChangeGeomBis()
  • Returns the <Bisec> of index <Index> in <theGeomBisectors>.
    param Index

    type Index

    int

    rtype

    Bisector_Bisec

Circuit()
Return type

opencascade::handle<MAT2d_Circuit>

CreateBisector()
  • Creates the geometric bisector defined by <abisector>.
    param abisector

    type abisector

    MAT_Bisector

    rtype

    None

Distance()
  • Returns the distance between the two points designed by their parameters on <abisector>.
    param abisector

    type abisector

    MAT_Bisector

    param param1

    type param1

    float

    param param2

    type param2

    float

    rtype

    float

Dump()
  • displays informations about the bisector defined by <bisector>.
    param bisector

    type bisector

    int

    param erease

    type erease

    int

    rtype

    None

FirstPoint()
  • Creates the point at the origin of the bisector between anitem and the previous item. dist is the distance from the FirstPoint to <anitem>. Returns the index of this point in <theGeomPnts>.
    param anitem

    type anitem

    int

    param dist

    type dist

    float

    rtype

    int

GeomBis()
  • Returns the <Bisec> of index <Index> in <theGeomBisectors>.
    param Index

    type Index

    int

    rtype

    Bisector_Bisec

GeomElt()
  • Returns the Geometry of index <Index> in <theGeomElts>.
    param Index

    type Index

    int

    rtype

    opencascade::handle<Geom2d_Geometry>

GeomPnt()
  • Returns the point of index <Index> in the <theGeomPnts>.
    param Index

    type Index

    int

    rtype

    gp_Pnt2d

GeomVec()
  • Returns the vector of index <Index> in the <theGeomVecs>.
    param Index

    type Index

    int

    rtype

    gp_Vec2d

InitItems()
  • InitItems cuts the line in Items. this Items are the geometrics representations of the BasicElts from MAT.
    param aCircuit

    type aCircuit

    MAT2d_Circuit

    rtype

    None

IntersectBisector()
  • Computes the point of intersection between the bisectors defined by <bisectorone> and <bisectortwo> . If this point exists, <intpnt> is its index in <theGeomPnts> and Return the distance of the point from the bisector else Return <RealLast>.
    param bisectorone

    type bisectorone

    MAT_Bisector

    param bisectortwo

    type bisectortwo

    MAT_Bisector

    param intpnt

    type intpnt

    int

    rtype

    float

NumberOfItems()
  • Returns the Number of Items .
    rtype

    int

Sense()
  • <aSide> defines the side of the computation of the map.
    param aside

    type aside

    MAT_Side

    rtype

    None

SetJoinType()
Parameters

aJoinType

type aJoinType

GeomAbs_JoinType

rtype

None

Tangent()
  • Creates the Tangent at the end of the bisector defined by <bisector>. Returns the index of this vector in <theGeomVecs>
    param bisector

    type bisector

    int

    rtype

    int

TangentAfter()
  • Creates the Reversed Tangent at the origin of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>
    param anitem

    type anitem

    int

    param IsOpenResult

    type IsOpenResult

    bool

    rtype

    int

TangentBefore()
  • Creates the Tangent at the end of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>
    param anitem

    type anitem

    int

    param IsOpenResult

    type IsOpenResult

    bool

    rtype

    int

ToleranceOfConfusion()
  • Returns tolerance to test the confusion of two points.
    rtype

    float

TrimBisector()
  • Trims the geometric bisector by the <firstparameter> of <abisector>. If the parameter is out of the bisector, Return False. else Return True.
    param abisector

    type abisector

    MAT_Bisector

    rtype

    bool* Trims the geometric bisector by the point of index <apoint> in <theGeomPnts>. If the point is out of the bisector, Return False. else Return True.

    param abisector

    type abisector

    MAT_Bisector

    param apoint

    type apoint

    int

    rtype

    bool

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()