A point cloud hierarchy node.

interface PointCloudNode {
    center: Vector3;
    children?: (undefined | PointCloudNode)[];
    depth: number;
    geometricError: number;
    hasData: boolean;
    id: string;
    parent?: PointCloudNode;
    pointCount?: number;
    sourceId: string;
    volume: Box3;
}

Properties

center: Vector3

The center of the volume, in world space coordinates.

children?: (undefined | PointCloudNode)[]

The children of this node. If undefined, this node is a leaf node. The array can contain undefined items though (for example an octree that does not have 8 defined children).

depth: number

The depth of the node in the hierarchy. A depth of zero indicates a root node.

geometricError: number

The geometric error of this node. Used to determine if the node should be displayed from a given camera position. Generally it can be the same as the point spacing.

hasData: boolean

True if the node has point cloud data, or if it is empty.

id: string

The ID of the node in the source. Note: this ID is not unique across sources.

The parent of this node. If undefined, this node is a root node.

pointCount?: number

The number of points in this node, if known.

sourceId: string

The ID of the PointCloudSource that owns this node.

volume: Box3

The node volume in world space coordinates.