Log inGet started
Package

TreeGen.module

This package holds more than this page lists. See all of its files in its world.

README.md

TreeGen

Deterministic tree generator behind the forestProps trees. TreeGen.generate(kind, age, variant) grows a skeleton (trunk -> limbs -> branches -> twigs) whose lengths are cut by a per-species crown envelope (oak broad and lumpy, beech dome, birch narrow and weeping, maple round), builds bark as tapered parallel-transport tubes with root flare, buttress lobes, join collars and continuous world-scale bark UVs, places alpha-cut leaf-cluster cards on the twigs with outward-bent normals and crown-depth shading, and returns per-LOD geometry within triangle budgets: LOD0 bark/leaf/toon (clumped-blob crown), LOD1 (thinned), LOD2 (big cluster cards + limbs, plus barkw, a branches-only winter stand-in). Also builds deadSnag, brokenTree and fallenGiant. Species x age parameters live in TreeGen.config. Tool-time only: TreeBake calls it and bakes the result; nothing loads it at runtime.