Octree<T>

Type parameters

  • T

Hierarchy

  • Octree

Index

Constructors

constructor

  • new Octree(creationFunc: function, maxBlockCapacity?: number, maxDepth?: number): Octree
  • Parameters

    • creationFunc: function
    • Optional maxBlockCapacity: number
    • Optional maxDepth: number

    Returns Octree

Properties

blocks

blocks: Array<OctreeBlock<T>>

dynamicContent

dynamicContent: T[]

maxDepth

maxDepth: number

Static CreationFuncForMeshes

CreationFuncForMeshes: function

Type declaration

Static CreationFuncForSubMeshes

CreationFuncForSubMeshes: function

Type declaration

Methods

addMesh

  • addMesh(entry: T): void
  • Parameters

    • entry: T

    Returns void

intersects

  • intersects(sphereCenter: Vector3, sphereRadius: number, allowDuplicate?: boolean): SmartArray<T>
  • Parameters

    • sphereCenter: Vector3
    • sphereRadius: number
    • Optional allowDuplicate: boolean

    Returns SmartArray<T>

intersectsRay

select

  • Parameters

    • frustumPlanes: Plane[]
    • Optional allowDuplicate: boolean

    Returns SmartArray<T>

update

  • Parameters

    Returns void

Generated using TypeDoc