MAT2d
OCCT package MAT2d: MAT2d_BiInt, MAT2d_Circuit, MAT2d_Connexion, MAT2d_Mat2d, and 2 more bound classes.
MAT2d_BiInt
BiInt is a set of two integers.
Constructors(1)
- constructor(I1: number, I2: number): MAT2d_BiIntParameters (2)
I1I2
Instance methods(5)
- FirstIndex(): number
- FirstIndex(I1: number): voidParameters (1)
I1
- SecondIndex(): number
- SecondIndex(I2: number): voidParameters (1)
I2
- IsEqual(B: MAT2d_BiInt): booleanParameters (1)
B
MAT2d_Circuit
Constructs a circuit on a set of lines. EquiCircuit gives a Circuit passing by all the lines in a set and all the connexions of the minipath associated.
Constructors(1)
- constructor(aJoinType?: GeomAbs_JoinType, IsOpenResult?: boolean): MAT2d_CircuitParameters (2)
aJoinTypeIsOpenResult
Static methods(2)
- get_type_name(): string
Instance methods(8)
- Perform(aFigure: NCollection_Sequence_NCollection_Sequence_handle_Geom2d_Geometry, IsClosed: NCollection_Sequence_bool, IndRefLine: number, Trigo: boolean): voidParameters (4)
aFigureIsClosedIndRefLineTrigo
- NumberOfItems(): number
Returns the Number of Items .
- Value(Index: number): Geom2d_Geometry
Returns the item at position <Index> in <me>.
Parameters (1)Index
- LineLength(IndexLine: number): number
Returns the number of items on the line <IndexLine>.
Parameters (1)IndexLine
- RefToEqui(IndLine: number, IndCurve: number): NCollection_Sequence_int
Returns the set of index of the items in <me>corresponding to the curve <IndCurve> on the line <IndLine> from the initial figure.
Parameters (2)IndLineIndCurve
- Connexion(Index: number): MAT2d_Connexion
Returns the Connexion on the item <Index> in me.
Parameters (1)Index
- ConnexionOn(Index: number): boolean
Returns <True> is there is a connexion on the item <Index> in <me>.
Parameters (1)Index
MAT2d_Connexion
A Connexion links two lines of items in a set of lines. It contains two points and their paramatric definitions on the lines. The items can be points or curves.
Constructors(2)
- constructor(LineA: number, LineB: number, ItemA: number, ItemB: number, Distance: number, ParameterOnA: number, ParameterOnB: number, PointA: gp_Pnt2d, PointB: gp_Pnt2d): MAT2d_ConnexionParameters (9)
LineALineBItemAItemBDistanceParameterOnAParameterOnBPointAPointB
Static methods(2)
- get_type_name(): string
Instance methods(22)
- IndexFirstLine(): number
Returns the Index on the first line.
- IndexFirstLine(anIndex: number): voidParameters (1)
anIndex
- IndexSecondLine(): number
Returns the Index on the Second line.
- IndexSecondLine(anIndex: number): voidParameters (1)
anIndex
- IndexItemOnFirst(): number
Returns the Index of the item on the first line.
- IndexItemOnFirst(anIndex: number): voidParameters (1)
anIndex
- IndexItemOnSecond(): number
Returns the Index of the item on the second line.
- IndexItemOnSecond(anIndex: number): voidParameters (1)
anIndex
- ParameterOnFirst(): number
Returns the parameter of the point on the firstline.
- ParameterOnFirst(aParameter: number): voidParameters (1)
aParameter
- ParameterOnSecond(): number
Returns the parameter of the point on the secondline.
- ParameterOnSecond(aParameter: number): voidParameters (1)
aParameter
Returns the point on the firstline.
- PointOnFirst(aPoint: gp_Pnt2d): voidParameters (1)
aPoint
Returns the point on the secondline.
- PointOnSecond(aPoint: gp_Pnt2d): voidParameters (1)
aPoint
- Distance(): number
Returns the distance between the two points.
- Distance(aDistance: number): voidParameters (1)
aDistance
Returns the reverse connexion of <me>. the firstpoint is the secondpoint. the secondpoint is the firstpoint.
- IsAfter(aConnexion: MAT2d_Connexion, aSense: number): boolean
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.
Parameters (2)aConnexionaSense
- Dump(Deep?: number, Offset?: number): void
Print <me>.
Parameters (2)DeepOffset
MAT2d_Mat2d
this class contains the generic algorithm of computation of the bisecting locus.
Constructors(1)
- constructor(IsOpenResult?: boolean): MAT2d_Mat2d
Empty constructor.
Parameters (1)IsOpenResult
Instance methods(9)
- CreateMat(aTool: MAT2d_Tool2d): void
Algorithm of computation of the bisecting locus.
Parameters (1)aTool—Mutated in place; read the updated value from this argument after the call.
- CreateMatOpen(aTool: MAT2d_Tool2d): void
Algorithm of computation of the bisecting locus for open wire.
Parameters (1)aTool—Mutated in place; read the updated value from this argument after the call.
- IsDone(): boolean
Returns <TRUE> if CreateMat has succeeded.
- Init(): void
Initialize an iterator on the set of the roots of the trees of bisectors.
- More(): boolean
Return False if there is no more roots.
- Next(): void
Move to the next root.
Returns the current root.
- SemiInfinite(): boolean
Returns True if there are semi_infinite bisectors. So there is a tree for each semi_infinte bisector.
- NumberOfBisectors(): number
Returns the total number of bisectors.
MAT2d_MiniPath
MiniPath computes a path to link all the lines in a set of lines. The path is described as a set of connexions.
The set of connexions can be seen as an arbitrary Tree. The node of the tree are the lines. The arcs of the tree are the connexions. The ancestror of a line is the connexion which ends on it. The children of a line are the connexions which start on it.
The children of a line are ordered by the relation <IsAfter> defined on the connexions. (See MAT2s_Connexion.cdl).
Constructors(1)
Instance methods(7)
- Perform(Figure: NCollection_Sequence_NCollection_Sequence_handle_Geom2d_Geometry, IndStart: number, Sense: boolean): void
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.
Parameters (3)FigureIndStartSense
- RunOnConnexions(): void
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. Returns the sequence of connexions corresponding to the path.
- IsConnexionsFrom(Index: number): boolean
Returns <True> if there is one Connexion which starts on line designed by <Index>.
Parameters (1)Index
- ConnexionsFrom(Index: number): NCollection_Sequence_handle_MAT2d_Connexion
Returns the connexions which start on line designed by <Index>.
Parameters (1)Index
- IsRoot(Index: number): boolean
Returns <True> if the line designed by <Index> is the root.
Parameters (1)Index
- Father(Index: number): MAT2d_Connexion
Returns the connexion which ends on line designed by <Index>.
Parameters (1)Index
MAT2d_Tool2d
Set of the methods useful for the MAT's computation. Tool2d contains the geometry of the bisecting locus.
Constructors(1)
Empty Constructor.
Instance methods(22)
<aSide> defines the side of the computation of the map.
Parameters (1)aside
- SetJoinType(aJoinType: GeomAbs_JoinType): voidParameters (1)
aJoinType
- InitItems(aCircuit: MAT2d_Circuit): void
InitItems cuts the line in Items. this Items are the geometrics representations of the BasicElts from MAT.
Parameters (1)aCircuit
- NumberOfItems(): number
Returns the Number of Items .
- ToleranceOfConfusion(): number
Returns tolerance to test the confusion of two points.
- FirstPoint(anitem: number, dist: number): { returnValue: number; dist: number }
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>.
Parameters (2)anitemdist
ReturnsA result object with fields:
returnValue: the C++ return valuedist: updated value from the call.
- TangentBefore(anitem: number, IsOpenResult: boolean): number
Creates the Tangent at the end of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>.
Parameters (2)anitemIsOpenResult
- TangentAfter(anitem: number, IsOpenResult: boolean): number
Creates the Reversed Tangent at the origin of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>.
Parameters (2)anitemIsOpenResult
- Tangent(bisector: number): number
Creates the Tangent at the end of the bisector defined by <bisector>. Returns the index of this vector in <theGeomVecs>.
Parameters (1)bisector
- CreateBisector(abisector: MAT_Bisector): void
Creates the geometric bisector defined by <abisector>.
Parameters (1)abisector
- TrimBisector(abisector: MAT_Bisector): boolean
Trims the geometric bisector by the <firstparameter> of <abisector>. If the parameter is out of the bisector, Return FALSE. else Return True.
Parameters (1)abisector
- TrimBisector(abisector: MAT_Bisector, apoint: number): boolean
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.
Parameters (2)abisectorapoint
- IntersectBisector(bisectorone: MAT_Bisector, bisectortwo: MAT_Bisector, intpnt: number): { returnValue: number; intpnt: number }
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>.
Parameters (3)bisectoronebisectortwointpnt
ReturnsA result object with fields:
returnValue: the C++ return valueintpnt: updated value from the call.
- Distance(abisector: MAT_Bisector, param1: number, param2: number): number
Returns the distance between the two points designed by their parameters on <abisector>.
Parameters (3)abisectorparam1param2
- Dump(bisector: number, erease: number): void
displays information about the bisector defined by <bisector>.
Parameters (2)bisectorerease
- GeomBis(Index: number): Bisector_Bisec
Returns the <Bisec> of index <Index> in <theGeomBisectors>.
Parameters (1)Index
- GeomElt(Index: number): Geom2d_Geometry
Returns the Geometry of index <Index> in <theGeomElts>.
Parameters (1)Index
Returns the point of index <Index> in the <theGeomPnts>.
Parameters (1)Index
Returns the vector of index <Index> in the <theGeomVecs>.
Parameters (1)Index
- BisecFusion(Index1: number, Index2: number): voidParameters (2)
Index1Index2
- ChangeGeomBis(Index: number): Bisector_Bisec
Returns the <Bisec> of index <Index> in <theGeomBisectors>.
Parameters (1)Index