CLASSES
TagsA - Z

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

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 SmartArray<T>
optional allowDuplicate boolean

intersects(sphereCenter, sphereRadius, selection, allowDuplicate) void

Parameters

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

intersectsRay(ray, selection) void

Parameters

Name Type Description
ray Ray
selection SmartArray<T>

createInnerBlocks() void