threejs-worldgen
    Preparing search index...

    Interface TreeSkeleton

    A grown branching structure: nodes connected to their parents, with pipe-model radii.

    interface TreeSkeleton {
        count: number;
        crownCenter: [x: number, y: number, z: number];
        parent: Int32Array;
        positions: Float32Array;
        radius: Float32Array;
        tipDistance: Int32Array;
        tips: Int32Array;
    }
    Index
    count: number

    Number of nodes.

    crownCenter: [x: number, y: number, z: number]

    Centre of the crown envelope; leaf normals point away from it.

    parent: Int32Array

    Parent node index, or -1 for the root. Parents always come before their children.

    positions: Float32Array

    xyz per node, metres; the base of the trunk is at the origin.

    radius: Float32Array

    Branch radius at each node (pipe model).

    tipDistance: Int32Array

    Steps from each node to its nearest branch tip (0 = a tip).

    tips: Int32Array

    Number of branch tips above each node.