OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

HatchGen

OCCT package HatchGen: HatchGen_Domain, HatchGen_ErrorStatus, HatchGen_IntersectionPoint, HatchGen_IntersectionType, and 2 more bound classes.

HatchGen_Domain

Constructors(3)

Instance methods(11)

HatchGen_IntersectionPoint

Instance methods(15)

  • SetIndex(Index: number): void

    Sets the index of the supporting curve.

    Parameters (1)
    • Index
  • Index(): number

    Returns the index of the supporting curve.

  • SetParameter(Parameter: number): void

    Sets the parameter on the curve.

    Parameters (1)
    • Parameter
  • Parameter(): number

    Returns the parameter on the curve.

  • Sets the position of the point on the curve.

    Parameters (1)
    • Position
  • Returns the position of the point on the curve.

  • Sets the transition state before the intersection.

    Parameters (1)
    • State
  • Returns the transition state before the intersection.

  • Sets the transition state after the intersection.

    Parameters (1)
    • State
  • Returns the transition state after of the intersection.

  • SetSegmentBeginning(State?: boolean): void

    Sets the flag that the point is the beginning of a segment.

    Parameters (1)
    • State
  • SegmentBeginning(): boolean

    Returns the flag that the point is the beginning of a segment.

  • SetSegmentEnd(State?: boolean): void

    Sets the flag that the point is the end of a segment.

    Parameters (1)
    • State
  • SegmentEnd(): boolean

    Returns the flag that the point is the end of a segment.

  • Dump(Index?: number): void

    Dump of the point on element.

    Parameters (1)
    • Index

HatchGen_PointOnElement

Constructors(2)

Instance methods(5)

  • Sets the intersection type at this point.

    Parameters (1)
    • Type
  • Returns the intersection type at this point.

  • IsIdentical(Point: HatchGen_PointOnElement, Confusion: number): boolean

    Tests if the point is identical to an other. That is to say : P1.myIndex = P2.myIndex Abs (P1.myParam - P2.myParam) <= Confusion P1.myPosit = P2.myPosit P1.myBefore = P2.myBefore P1.myAfter = P2.myAfter P1.mySegBeg = P2.mySegBeg P1.mySegEnd = P2.mySegEnd P1.myType = P2.myType.

    Parameters (2)
    • Point
    • Confusion
  • IsDifferent(Point: HatchGen_PointOnElement, Confusion: number): boolean

    Tests if the point is different from an other.

    Parameters (2)
    • Point
    • Confusion
  • Dump(Index?: number): void

    Dump of the point on element.

    Parameters (1)
    • Index

HatchGen_PointOnHatching

Constructors(2)

Instance methods(9)

  • AddPoint(Point: HatchGen_PointOnElement, Confusion: number): void

    Adds a point on element to the point.

    Parameters (2)
    • Point
    • Confusion
  • NbPoints(): number

    Returns the number of elements intersecting the hatching at this point.

  • Returns the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.

    Parameters (1)
    • Index
  • RemPoint(Index: number): void

    Removes the Index-th point on element of the point. The exception OutOfRange is raised if Index > NbPoints.

    Parameters (1)
    • Index
  • ClrPoints(): void

    Removes all the points on element of the point.

  • IsLower(Point: HatchGen_PointOnHatching, Confusion: number): boolean

    Tests if the point is lower than an other. A point on hatching P1 is said to be lower than an other P2 if : P2.myParam - P1.myParam > Confusion.

    Parameters (2)
    • Point
    • Confusion
  • IsEqual(Point: HatchGen_PointOnHatching, Confusion: number): boolean

    Tests if the point is equal to an other. A point on hatching P1 is said to be equal to an other P2 if : | P2.myParam - P1.myParam | <= Confusion.

    Parameters (2)
    • Point
    • Confusion
  • IsGreater(Point: HatchGen_PointOnHatching, Confusion: number): boolean

    Tests if the point is greater than an other. A point on hatching P1 is said to be greater than an other P2 if : P1.myParam - P2.myParam > Confusion.

    Parameters (2)
    • Point
    • Confusion
  • Dump(Index?: number): void

    Dump of the point.

    Parameters (1)
    • Index