sparse-octree - v7.2.0
    Preparing search index...

    Class Octree<T>

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

    Type Parameters

    • T extends Node = Node

      The type of the octants.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    root: T

    The root octant.

    Accessors

    Methods

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

      Returns Iterator<T>

      An iterator.

    • Fetches all nodes of a specific depth level.

      Parameters

      • level: number

        The depth level.

      Returns T[]

      The nodes.

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

      Parameters

      Returns T[]

      The intersecting nodes.