Interface KdNode3

A node in a KdTree3.

See @xeokit/sdk/kdtree3 for usage.

interface KdNode3 {
    aabb: FloatArrayParam;
    index: number;
    items?: KdItem3D[];
    left?: KdNode3;
    right?: KdNode3;
}

Properties

The axis-aligned World-space 3D boundary of this kd-tree node.

index: number

A unique, sequential numeric ID for this KDNode within its KdTree3.

This is used by queries that cache intersection results for KDNodes.

items?: KdItem3D[]

The KDItems stored in this KDNode.

left?: KdNode3

The left KDNode.

right?: KdNode3

The right KDNode.