Constructors

  • Parameters

    • geometry: BufferGeometry<NormalBufferAttributes>
    • Optional options: MeshBVHOptions

    Returns MeshBVH

Properties

geometry: BufferGeometry<NormalBufferAttributes>

Methods

  • Parameters

    • otherBVH: MeshBVH
    • matrixToLocal: Matrix4
    • callbacks: {
          intersectsRanges: ((offset1, count1, offset2, count2, depth1, index1, depth2, index2) => boolean);
      } | {
          intersectsTriangles: ((triangle1, triangle2, i1, i2, depth1, index1, depth2, index2) => boolean);
      }

    Returns boolean

  • Parameters

    • geometry: BufferGeometry<NormalBufferAttributes>
    • geometryToBvh: Matrix4
    • Optional target1: HitPointInfo
    • Optional target2: HitPointInfo
    • Optional minThreshold: number
    • Optional maxThreshold: number

    Returns HitPointInfo

  • Parameters

    • point: Vector3
    • Optional target: HitPointInfo
    • Optional minThreshold: number
    • Optional maxThreshold: number

    Returns HitPointInfo

  • Parameters

    • target: Box3

    Returns Box3

  • Parameters

    • box: Box3
    • boxToMesh: Matrix4

    Returns boolean

  • Parameters

    • geometry: BufferGeometry<NormalBufferAttributes>
    • geometryToBvh: Matrix4

    Returns boolean

  • Parameters

    • sphere: Sphere

    Returns boolean

  • Parameters

    • ray: Ray
    • materialOrSide: Material | Material[] | Side

    Returns Intersection<Object3D<Object3DEventMap>>[]

  • Parameters

    • ray: Ray
    • materialOrSide: Material | Material[] | Side

    Returns Intersection<Object3D<Object3DEventMap>>

  • Parameters

    • Optional nodeIndices: number[] | Set<number>

    Returns void

  • Parameters

    • callbacks: {
          boundsTraverseOrder?: ((box) => number);
          intersectsBounds: ((box, isLeaf, score, depth, nodeIndex) => boolean | ShapecastIntersection);
      } & ({
          intersectsRange: ((triangleOffset, triangleCount, contained, depth, nodeIndex, box) => boolean);
      } | {
          intersectsTriangle: ((triangle, triangleIndex, contained, depth) => boolean | void);
      })

    Returns boolean

  • Parameters

    • callback: ((depth, isLeaf, boundingData, offsetOrSplit, count) => void)
        • (depth, isLeaf, boundingData, offsetOrSplit, count): void
        • Parameters

          • depth: number
          • isLeaf: boolean
          • boundingData: ArrayBuffer
          • offsetOrSplit: number
          • count: number

          Returns void

    • Optional rootIndex: number

    Returns void