OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

IntWalk

OCCT package IntWalk: IntWalk_StatusDeflection, IntWalk_TheInt2S, IntWalk_VectorOfInteger, IntWalk_VectorOfWalkingData, and 1 more bound classes.

IntWalk_TheInt2S

Constructors(2)

Instance methods(8)

  • IsDone(): boolean

    Returns TRUE if the creation completed without failure.

  • IsEmpty(): boolean

    Returns TRUE when there is no solution to the problem.

  • Returns the intersection point.

  • IsTangent(): boolean

    Returns True if the surfaces are tangent at the intersection point.

  • Returns the tangent at the intersection line.

  • Returns the tangent at the intersection line in the parametric space of the first surface.

  • Returns the tangent at the intersection line in the parametric space of the second surface.

  • return the intersection point which is enable for changing.

IntWalk_VectorOfInteger

Contiguous dynamic array using a flat memory buffer.
Unlike NCollection_DynamicArray which uses segmented block storage, this container stores all elements in a single contiguous allocation, providing O(1) element access with a single pointer dereference.
For trivially copyable types, growth uses Standard::Reallocate which can extend the buffer in-place without copying elements. For non-trivial types, growth allocates a new buffer and move-constructs elements.
Indices are always 0-based.

Constructors(4)

Static methods(1)

  • MaxSize(): number
    Returns

    current max supported size.

Instance methods(24)

  • Data(): number
    Returns

    raw data pointer.

  • HasData(): boolean
    Returns

    true if the vector has allocated storage.

  • Empty(): boolean
    Returns

    true if the vector contains no elements.

  • Size(): number
    Returns

    number of elements.

  • IsEmpty(): boolean
    Returns

    true if the vector contains no elements.

  • Capacity(): number
    Returns

    current allocated capacity.

  • Reserve(theCapacity: number): void

    Pre-allocate memory for at least theCapacity elements without changing size.

    Parameters (1)
    • theCapacity
      minimum capacity to ensure
  • Resize(theSize: number): void

    Change the number of elements. If theSize > Size(), new elements are default-constructed. If theSize < Size(), excess elements are destroyed.

    Parameters (1)
    • theSize
      new number of elements
  • Resize(theSize: number, theValue: number): void

    Change the number of elements, filling new slots with theValue. If theSize > Size(), new elements are copy-constructed from theValue. If theSize < Size(), excess elements are destroyed.

    Parameters (2)
    • theSize
      new number of elements
    • theValue
      value to fill new elements with
  • Value(theIndex: number): number
    Parameters (1)
    • theIndex
      element index (0-based)
    Returns

    const reference to element at theIndex.

  • ChangeValue(theIndex: number): number
    Parameters (1)
    • theIndex
      element index (0-based)
    Returns

    mutable reference to element at theIndex.

  • First(): number
    Returns

    const reference to the first element.

  • ChangeFirst(): number
    Returns

    mutable reference to the first element.

  • Last(): number
    Returns

    const reference to the last element.

  • ChangeLast(): number
    Returns

    mutable reference to the last element.

  • Append(theValue: number): number

    Append a copy of theValue to the end.

    Parameters (1)
    • theValue
      element to append
    Returns

    reference to the appended element

  • Appended(): number

    Append a default-constructed element.

    Returns

    reference to the appended element

  • SetValue(theIndex: number, theValue: number): number

    Set value at theIndex. If theIndex >= Size(), the vector is extended.

    Parameters (2)
    • theIndex
      element index (0-based)
    • theValue
      value to set
    Returns

    reference to the element

  • InsertBefore(theIndex: number, theValue: number): void

    Insert theValue before theIndex, shifting elements right.

    Parameters (2)
    • theIndex
      insertion position (0-based)
    • theValue
      element to insert
  • InsertAfter(theIndex: number, theValue: number): void

    Insert theValue after theIndex, shifting elements right.

    Parameters (2)
    • theIndex
      position after which to insert (0-based)
    • theValue
      element to insert
  • EraseLast(): void

    Remove the last element.

  • Erase(theIndex: number): void

    Remove element at theIndex, shifting subsequent elements left.

    Parameters (1)
    • theIndex
      element index (0-based)
  • Erase(theFrom: number, theTo: number): void

    Remove elements in range [theFrom, theTo), shifting subsequent elements left.

    Parameters (2)
    • theFrom
      start index (inclusive, 0-based)
    • theTo
      end index (exclusive, 0-based)
  • Clear(theReleaseMemory?: boolean): void

    Remove all elements.

    Parameters (1)
    • theReleaseMemory
      if true, deallocate the buffer

IntWalk_VectorOfWalkingData

Contiguous dynamic array using a flat memory buffer.
Unlike NCollection_DynamicArray which uses segmented block storage, this container stores all elements in a single contiguous allocation, providing O(1) element access with a single pointer dereference.
For trivially copyable types, growth uses Standard::Reallocate which can extend the buffer in-place without copying elements. For non-trivial types, growth allocates a new buffer and move-constructs elements.
Indices are always 0-based.

Constructors(4)

Static methods(1)

  • MaxSize(): number
    Returns

    current max supported size.

Instance methods(24)

  • Returns

    raw data pointer.

  • HasData(): boolean
    Returns

    true if the vector has allocated storage.

  • Empty(): boolean
    Returns

    true if the vector contains no elements.

  • Size(): number
    Returns

    number of elements.

  • IsEmpty(): boolean
    Returns

    true if the vector contains no elements.

  • Capacity(): number
    Returns

    current allocated capacity.

  • Reserve(theCapacity: number): void

    Pre-allocate memory for at least theCapacity elements without changing size.

    Parameters (1)
    • theCapacity
      minimum capacity to ensure
  • Resize(theSize: number): void

    Change the number of elements. If theSize > Size(), new elements are default-constructed. If theSize < Size(), excess elements are destroyed.

    Parameters (1)
    • theSize
      new number of elements
  • Resize(theSize: number, theValue: IntWalk_WalkingData): void

    Change the number of elements, filling new slots with theValue. If theSize > Size(), new elements are copy-constructed from theValue. If theSize < Size(), excess elements are destroyed.

    Parameters (2)
    • theSize
      new number of elements
    • theValue
      value to fill new elements with
  • Value(theIndex: number): IntWalk_WalkingData
    Parameters (1)
    • theIndex
      element index (0-based)
    Returns

    const reference to element at theIndex.

  • ChangeValue(theIndex: number): IntWalk_WalkingData
    Parameters (1)
    • theIndex
      element index (0-based)
    Returns

    mutable reference to element at theIndex.

  • Returns

    const reference to the first element.

  • Returns

    mutable reference to the first element.

  • Returns

    const reference to the last element.

  • Returns

    mutable reference to the last element.

  • Append a copy of theValue to the end.

    Parameters (1)
    • theValue
      element to append
    Returns

    reference to the appended element

  • Append a default-constructed element.

    Returns

    reference to the appended element

  • SetValue(theIndex: number, theValue: IntWalk_WalkingData): IntWalk_WalkingData

    Set value at theIndex. If theIndex >= Size(), the vector is extended.

    Parameters (2)
    • theIndex
      element index (0-based)
    • theValue
      value to set
    Returns

    reference to the element

  • InsertBefore(theIndex: number, theValue: IntWalk_WalkingData): void

    Insert theValue before theIndex, shifting elements right.

    Parameters (2)
    • theIndex
      insertion position (0-based)
    • theValue
      element to insert
  • InsertAfter(theIndex: number, theValue: IntWalk_WalkingData): void

    Insert theValue after theIndex, shifting elements right.

    Parameters (2)
    • theIndex
      position after which to insert (0-based)
    • theValue
      element to insert
  • EraseLast(): void

    Remove the last element.

  • Erase(theIndex: number): void

    Remove element at theIndex, shifting subsequent elements left.

    Parameters (1)
    • theIndex
      element index (0-based)
  • Erase(theFrom: number, theTo: number): void

    Remove elements in range [theFrom, theTo), shifting subsequent elements left.

    Parameters (2)
    • theFrom
      start index (inclusive, 0-based)
    • theTo
      end index (exclusive, 0-based)
  • Clear(theReleaseMemory?: boolean): void

    Remove all elements.

    Parameters (1)
    • theReleaseMemory
      if true, deallocate the buffer