Class Octree

A pointer-based octree that subdivides space for fast spatial searches.

Hierarchy

Implements

Constructors

Properties

root: Node

The root octant.

Accessors

Methods

  • Returns an iterator that traverses the octree and returns all leaf nodes.

    Returns Iterator<Node, any, undefined>

    An iterator.

  • Recursively collects nodes that intersect with the specified region.

    Parameters

    Returns Node[]

    The nodes.

  • Calculates the current depth of this octree.

    Returns number

    The depth.

  • Finds nodes that intersect with the given ray. The intersecting nodes are sorted by distance, closest first.

    Parameters

    Returns Node[]

    The intersecting nodes.

  • Returns an iterator that traverses the octree and returns leaf nodes.

    When a cull region is provided, the iterator will only return leaves that intersect with that region.

    Parameters

    Returns Iterator<Node, any, undefined>

    An iterator.

Generated using TypeDoc