OpenCascade.js
API ReferenceFoundationClassesTKMath

BVH

OCCT package BVH: BVH_Array2d, BVH_Array2f, BVH_Array2i, BVH_Array3d, and 28 more bound classes.

BVH_BuilderTransient

A non-template class for using as base for BVH_Builder (just to have a named base class).

Static methods(2)

Instance methods(5)

BVH_BuildQueue

Command-queue for parallel building of BVH nodes.

Constructors(1)

Instance methods(4)

  • Size(): number

    Returns current size of BVH build queue. Uses acquire semantics to synchronize with enqueue/dequeue operations.

  • Enqueue(theWorkItem: number): void

    Enqueues new work-item onto BVH build queue.

    Parameters (1)
    • theWorkItem
  • Fetch(wasBusy: boolean): { returnValue: number; wasBusy: boolean }

    Fetches first work-item from BVH build queue.

    Parameters (1)
    • wasBusy
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • wasBusy: updated value from the call.
  • HasBusyThreads(): boolean

    Checks if there are active build threads. Uses acquire semantics to ensure visibility of thread counter updates. This is critical for termination detection: threads check this after finding an empty queue to determine if they should exit or wait.

BVH_BuildTool

Tool object to call BVH builder subroutines.

Instance methods(1)

  • Perform(theNode: number): void

    Performs splitting of the given BVH node.

    Parameters (1)
    • theNode

BVH_ObjectTransient

A non-template class for using as base for BVH_Object (just to have a named base class).

Static methods(2)

Instance methods(5)