BRepMAT2d
OCCT package BRepMAT2d: BRepMAT2d_BisectingLocus, BRepMAT2d_Explorer, BRepMAT2d_LinkTopoBilo.
BRepMAT2d_BisectingLocus
BisectingLocus generates and contains the Bisecting_Locus of a set of lines from Geom2d, defined by <ExploSet>.
If the set of lines contains closed lines:
These lines cut the plane in areas. One map can be computed for each area.
Bisecting locus computes a map in an area. The area is defined by a side (MAT_Left,MAT_Right) on one of the closed lines.
If the set of lines contains only open lines:
the map recovers all the plane.
Warning: Assume the orientation of the closed lines are compatible.
Assume the explo contains only lines located in the area where the bisecting locus will be computed.
Assume a line don't cross itself or an other line.
Remark: the curves coming from the explorer can be decomposed in different parts. It the case for the curves other than circles or lines.
The map of bisecting locus is described by a graph.
- The BasicsElements correspond to elements on the figure described by the Explorer from BRepMAT2d.
- The Arcs correspond to the bisectors.
- The Nodes are the extremities of the arcs.
Constructors(1)
Instance methods(10)
- Compute(anExplo: BRepMAT2d_Explorer, LineIndex: number, aSide: MAT_Side, aJoinType: GeomAbs_JoinType, IsOpenResult: boolean): void
Computation of the Bisector_Locus in a set of Lines defined in <anExplo>. The bisecting locus are computed on the side <aSide> from the line <LineIndex> in <anExplo>.
Parameters (5)anExplo—Mutated in place; read the updated value from this argument after the call.LineIndexaSideaJoinTypeIsOpenResult
- IsDone(): boolean
Returns True if Compute has succeeded.
Returns <theGraph> of <me>.
- NumberOfContours(): number
Returns the number of contours.
- NumberOfElts(IndLine: number): number
Returns the number of BasicElts on the line <IndLine>.
Parameters (1)IndLine
- NumberOfSections(IndLine: number, Index: number): number
Returns the number of sections of a curve. this curve is the Indexth curve in the IndLineth contour given by anExplo.
Parameters (2)IndLineIndex
- BasicElt(IndLine: number, Index: number): MAT_BasicElt
Returns the BasicElts located at the position <Index> on the contour designed by <IndLine>. Remark: the BasicElts on a contour are sorted.
Parameters (2)IndLineIndex
- GeomElt(aBasicElt: MAT_BasicElt): Geom2d_Geometry
Returns the geometry linked to the <BasicElt>.
Parameters (1)aBasicElt
Returns the geometry of type <gp> linked to the <Node>.
Parameters (1)aNode
- GeomBis(anArc: MAT_Arc, Reverse: boolean): { returnValue: Bisector_Bisec; Reverse: boolean; [Symbol.dispose](): void }
Returns the geometry of type <Bissec> linked to the arc <ARC>. <Reverse> is False when the FirstNode of <anArc> correspond to the first point of geometry.
Parameters (2)anArcReverse
ReturnsA result object with fields:
returnValue: the C++ return valueReverse: updated value from the call.
Dispose the returned envelope to release owned Handle fields.
BRepMAT2d_Explorer
Construct an explorer from wires, face, set of curves from Geom2d to compute the bisecting Locus.
Constructors(2)
- constructor(aFace: TopoDS_Face): BRepMAT2d_ExplorerParameters (1)
aFace
Instance methods(13)
- Clear(): void
Clear the contents of <me>.
- Perform(aFace: TopoDS_Face): voidParameters (1)
aFace
- NumberOfContours(): number
Returns the Number of contours.
- NumberOfCurves(IndexContour: number): number
Returns the Number of Curves in the Contour number <IndexContour>.
Parameters (1)IndexContour
- Init(IndexContour: number): void
Initialisation of an
Iteratoron the curves of the Contour number <IndexContour>.Parameters (1)IndexContour
- More(): boolean
Return False if there is no more curves on the Contour initialised by the method Init.
- Next(): void
Move to the next curve of the current Contour.
Returns the current curve on the current Contour.
- Contour(IndexContour: number): NCollection_Sequence_handle_Geom2d_CurveParameters (1)
IndexContour
- IsModified(aShape: TopoDS_Shape): booleanParameters (1)
aShape
- ModifiedShape(aShape: TopoDS_Shape): TopoDS_Shape
If the shape is not modified, returns the shape itself.
Parameters (1)aShape
BRepMAT2d_LinkTopoBilo
Constructs links between the Wire or the Face of the explorer and the BasicElts contained in the bisecting locus.
Constructors(2)
- constructor(Explo: BRepMAT2d_Explorer, BiLo: BRepMAT2d_BisectingLocus): BRepMAT2d_LinkTopoBilo
Constructs the links Between S and BiLo.
raises if is not a face.Parameters (2)ExploBiLo
Instance methods(6)
- Perform(Explo: BRepMAT2d_Explorer, BiLo: BRepMAT2d_BisectingLocus): void
Constructs the links Between S and BiLo.
raises if is not a face or a wire.Parameters (2)ExploBiLo
- Init(S: TopoDS_Shape): void
Initialise the
Iteratoron is an edge or a vertex of the initial wire or face. raises if is not an edge or a vertex.Parameters (1)S
- More(): boolean
Returns True if there is a current BasicElt.
- Next(): void
Proceed to the next BasicElt.
Returns the current BasicElt.
Returns the Shape linked to <aBE>.
Parameters (1)aBE