ShapeParams
Which wood exists: height, trunk, where the crown starts and ends, and how each level of branches grows. Together with FoliageParams this decides the geometry.
Defined in: tree/src/params.ts:49
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
azimuthJitterDeg | number | Random twist added to each child's golden-angle position around its parent, in degrees. | tree/src/params.ts:60 |
branchTaper | number | Taper exponent for branches (the trunk has its own). | tree/src/params.ts:68 |
crownEndRatio | number | - | tree/src/params.ts:56 |
crownStartRatio | number | First and last child position along the trunk, as fractions of its length. | tree/src/params.ts:55 |
envelope | "mid" | "taper" | "mid" puts the longest limbs mid-crown (broadleaf); "taper" shortens with height (conifer). | tree/src/params.ts:58 |
height | number | Overall height in voxels; the skeleton is scaled to hit this exactly. | tree/src/params.ts:52 |
kind | SpeciesKind | - | tree/src/params.ts:50 |
levels | BranchLevel[] | Growth rules per level of branches; index 0 is the limbs off the trunk. | tree/src/params.ts:72 |
minRadius | number | Thinnest any branch gets, in voxels. | tree/src/params.ts:70 |
pipeExp | number | Pipe-model exponent; higher keeps child branches thicker at forks. | tree/src/params.ts:66 |
trunk | TrunkParams | - | tree/src/params.ts:53 |
whorl | number | 0 spawns children alternately; >0 spawns whorls of this many at once. | tree/src/params.ts:62 |
whorlSpacingRatio | number | Distance between whorls as a fraction of height. | tree/src/params.ts:64 |