OctreeBlock

Description

class OctreeBlock

Constructor

new OctreeBlock(minPoint, maxPoint, capacity, depth, maxDepth, creationFunc)

Parameters

Name Type Description
minPoint Vector3
maxPoint Vector3
capacity number
depth number
maxDepth number
creationFunc entry T
block OctreeBlock<T>

Members

entries : T[]

blocks : Array<OctreeBlock<T>>

capacity : number

minPoint : Vector3

maxPoint : Vector3

Methods

addEntry(entry) void

Parameters

Name Type Description
entry T

addEntries(entries) void

Parameters

Name Type Description
entries T[]

select(frustumPlanes, selection, allowDuplicate) void

Parameters

Name Type Description
frustumPlanes Plane[]
selection SmartArrayNoDuplicate<T>
optional allowDuplicate boolean

intersects(sphereCenter, sphereRadius, selection, allowDuplicate) void

Parameters

Name Type Description
sphereCenter Vector3
sphereRadius number
selection SmartArrayNoDuplicate<T>

intersectsRay(ray, selection) void

Parameters

Name Type Description
ray Ray
selection SmartArrayNoDuplicate<T>

createInnerBlocks() void