OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

GccEnt

OCCT package GccEnt: GccEnt_BadQualifier, GccEnt_Position, GccEnt_QualifiedCirc, GccEnt_QualifiedLin.

GccEnt_QualifiedCirc

Creates a qualified 2d Circle. A qualified 2D circle is a circle (gp_Circ2d circle) with a qualifier which specifies whether the solution of a construction algorithm using the qualified circle (as an argument):

  • encloses the circle, or
  • is enclosed by the circle, or
  • is built so that both the circle and it are external to one another, or
  • is undefined (all solutions apply).

Constructors(1)

  • Constructs a qualified circle by assigning the qualifier Qualifier to the circle Qualified. Qualifier may be:

    • GccEnt_enclosing if the solution computed by a construction algorithm using the qualified circle encloses the circle, or
    • GccEnt_enclosed if the solution is enclosed by the circle, or
    • GccEnt_outside if both the solution and the circle are external to one another, or
    • GccEnt_unqualified if all solutions apply.
    Parameters (2)
    • Qualified
    • Qualifier

Instance methods(6)

  • Returns a 2D circle to which the qualifier is assigned.

  • Returns.

    • the qualifier of this qualified circle, if it is enclosing, enclosed or outside, or
    • GccEnt_noqualifier if it is unqualified.
  • IsUnqualified(): boolean

    Returns true if the Circ2d is Unqualified and false in the other cases.

  • IsEnclosing(): boolean

    Returns true if the solution computed by a construction algorithm using this qualified circle encloses the circle.

  • IsEnclosed(): boolean

    Returns true if the solution computed by a construction algorithm using this qualified circle is enclosed by the circle.

  • IsOutside(): boolean

    Returns true if both the solution computed by a construction algorithm using this qualified circle and the circle are external to one another.

GccEnt_QualifiedLin

Describes a qualified 2D line. A qualified 2D line is a line (gp_Lin2d line) with a qualifier which specifies whether the solution of a construction algorithm using the qualified line (as an argument):

  • is 'enclosed' by the line, or
  • is built so that both the line and it are external to one another, or
  • is undefined (all solutions apply). Note: the interior of a line is defined as the left-hand side of the line in relation to its orientation (i.e. when moving from the start to the end of the curve).

Constructors(1)

  • Constructs a qualified line by assigning the qualifier Qualifier to the line Qualified. Qualifier may be:

    • GccEnt_enclosed if the solution is enclosed by the line, or
    • GccEnt_outside if both the solution and the line are external to one another, or
    • GccEnt_unqualified if all solutions apply. Note : the interior of a line is defined as the left-hand side of the line in relation to its orientation.
    Parameters (2)
    • Qualified
    • Qualifier

Instance methods(5)

  • Returns a 2D line to which the qualifier is assigned.

  • Returns the qualifier of this qualified line, if it is "enclosed" or "outside", or.

    • GccEnt_noqualifier if it is unqualified.
  • IsUnqualified(): boolean

    Returns true if the solution is unqualified and false in the other cases.

  • IsEnclosed(): boolean

    Returns true if the solution is Enclosed in the Lin2d and false in the other cases.

  • IsOutside(): boolean

    Returns true if the solution is Outside the Lin2d and false in the other cases.