threejs-worldgen
    Preparing search index...

    Interface TreeGeometry

    Geometry of one generated tree. Both parts carry position, normal, uv and colour (linear rgb) attributes.

    interface TreeGeometry {
        bounds: Box3;
        fruit:
            | BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>
            | null;
        leaves:
            | BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>
            | null;
        trunk: BufferGeometry;
    }
    Index
    bounds: Box3

    Bounds of both parts together.

    fruit: BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap> | null

    Fruit, berries and flower heads (fruit material), or null when there are none.

    leaves: BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap> | null

    Leaf cards and fronds (leaf material), or null for leafless plants.

    trunk: BufferGeometry

    Trunk, branches and roots (bark material).