OpenCascade.js
API ReferenceModelingAlgorithmsTKHLR

Intrv

OCCT package Intrv: Intrv_Interval, Intrv_Intervals, Intrv_Position.

Intrv_Interval

----------** Other **-- IsBefore **--------- IsJustBefore **-------------- IsOverlappingAtStart **----------------------- IsJustEnclosingAtEnd **---------------------------------- IsEnclosing **--- IsJustOverlappingAtStart **------------ IsSimilar **----------------------- IsJustEnclosingAtStart **- IsInside **----- IsJustOverlappingAtEnd **---------------- IsOverlappingAtEnd **------- IsJustAfter **-- IsAfter

Constructors(3)

Instance methods(26)

  • Start(): number
  • End(): number
  • TolStart(): number
  • TolEnd(): number
  • Bounds(Start: number, TolStart: number, End: number, TolEnd: number): { Start: number; TolStart: number; End: number; TolEnd: number }
    Parameters (4)
    • Start
    • TolStart
    • End
    • TolEnd
  • SetStart(Start: number, TolStart: number): void
    Parameters (2)
    • Start
    • TolStart
  • FuseAtStart(Start: number, TolStart: number): void

    +--------------------> Old one +------------------------> New one to fuse <<< <<< +------------------------> result

    Parameters (2)
    • Start
    • TolStart
  • CutAtStart(Start: number, TolStart: number): void

    +-----------> Old one <---------+ Tool for cutting
    +-----------> result

    Parameters (2)
    • Start
    • TolStart
  • SetEnd(End: number, TolEnd: number): void
    Parameters (2)
    • End
    • TolEnd
  • FuseAtEnd(End: number, TolEnd: number): void

    <--------------------+ Old one <----------------+ New one to fuse
    <--------------------+ result

    Parameters (2)
    • End
    • TolEnd
  • CutAtEnd(End: number, TolEnd: number): void

    <----+ Old one +------> Tool for cutting <<< <<< <----+ result

    Parameters (2)
    • End
    • TolEnd
  • IsProbablyEmpty(): boolean

    True if myStart+myTolStart > myEnd-myTolEnd or if myEnd+myTolEnd > myStart-myTolStart.

  • True if me is Before Other ----------** Other **---- Before **----------- JustBefore **---------------- OverlappingAtStart **------------------------- JustEnclosingAtEnd **------------------------------------ Enclosing **--- JustOverlappingAtStart **------------ Similar **----------------------- JustEnclosingAtStart **- Inside **----- JustOverlappingAtEnd **---------------- OverlappingAtEnd **------- JustAfter **-- After.

    Parameters (1)
    • Other
  • IsBefore(Other: Intrv_Interval): boolean

    True if me is Before Other --------------- me ----------* Other.

    Parameters (1)
    • Other
  • IsAfter(Other: Intrv_Interval): boolean

    True if me is After Other ----------** me *--------------- Other.

    Parameters (1)
    • Other
  • IsInside(Other: Intrv_Interval): boolean

    True if me is Inside Other ----------** me *------------------------- Other.

    Parameters (1)
    • Other
  • IsEnclosing(Other: Intrv_Interval): boolean

    True if me is Enclosing Other ---------------------------* me *----------------- Other.

    Parameters (1)
    • Other
  • True if me is just Enclosing Other at start --------------------------* me *----------------- Other.

    Parameters (1)
    • Other
  • True if me is just Enclosing Other at End ---------------------------* me ----------------* Other.

    Parameters (1)
    • Other
  • IsJustBefore(Other: Intrv_Interval): boolean

    True if me is just before Other -------* me *---------- Other.

    Parameters (1)
    • Other
  • IsJustAfter(Other: Intrv_Interval): boolean

    True if me is just after Other ------ me *---------- Other.

    Parameters (1)
    • Other
  • True if me is overlapping Other at start -------------- me *---------- Other.

    Parameters (1)
    • Other
  • True if me is overlapping Other at end *---------- me -------------- Other.

    Parameters (1)
    • Other
  • True if me is just overlapping Other at start ---------- me *----------------------- Other.

    Parameters (1)
    • Other
  • True if me is just overlapping Other at end **---------- me *----------------------- Other.

    Parameters (1)
    • Other
  • IsSimilar(Other: Intrv_Interval): boolean

    True if me and Other have the same bounds ---------------** me *---------------- Other.

    Parameters (1)
    • Other

Intrv_Intervals

The class Intervals is a sorted sequence of non overlapping Real Intervals.

Constructors(2)

Instance methods(10)

Intrv_Position

Properties(13)