OpenCascade.js
API ReferenceModelingAlgorithmsTKTopAlgo

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.
    • LineIndex
    • aSide
    • aJoinType
    • IsOpenResult
  • IsDone(): boolean

    Returns True if Compute has succeeded.

  • Returns <theGraph> of <me>.

  • 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)
    • IndLine
    • Index
  • 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)
    • IndLine
    • Index
  • 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)
    • anArc
    • Reverse
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • Reverse: 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)

Instance methods(13)

BRepMAT2d_LinkTopoBilo

Constructs links between the Wire or the Face of the explorer and the BasicElts contained in the bisecting locus.

Constructors(2)

Instance methods(6)