ShapeParams
Which wood exists: the stems leaving the ground, how they lean and branch, and any extra clumps for a thicket. Together with FoliageParams this decides the geometry.
Defined in: bush/src/params.ts:26
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
azimuthJitterDeg | number | Random twist added to each child's golden-angle position, in degrees. | bush/src/params.ts:54 |
baseSpreadRatio | number | Radius of the basal cluster of stems, as a fraction of height. | bush/src/params.ts:32 |
branchTaper | number | Taper exponent for branches (the stems have their own). | bush/src/params.ts:58 |
childEnd | number | - | bush/src/params.ts:52 |
childStart | number | First and last child position along a stem. | bush/src/params.ts:51 |
clumps | number | Extra clumps of stems scattered around the centre, for a thicket. 0 makes a single shrub; each extra clump is offset and independently sized. | bush/src/params.ts:67 |
clumpSpreadRatio | number | How far the extra clumps sit from the centre, as a fraction of height. | bush/src/params.ts:69 |
curl | number | Amplitude of the coherent wobble along a stem. | bush/src/params.ts:45 |
height | number | Overall height in voxels; the skeleton is scaled to hit this exactly. | bush/src/params.ts:28 |
leanDeg | number | How far the stems lean outward from vertical. | bush/src/params.ts:34 |
leanVarDeg | number | Random spread on that lean, in degrees either way. | bush/src/params.ts:36 |
lengthRatio | number | Stem length as a fraction of height, and its spread. | bush/src/params.ts:38 |
lengthVar | number | - | bush/src/params.ts:39 |
levels | BranchLevel[] | Growth rules per level of branches; index 0 is the side shoots off the stems. | bush/src/params.ts:62 |
minRadius | number | Thinnest any branch gets, in voxels. | bush/src/params.ts:60 |
pipeExp | number | Pipe-model exponent; higher keeps child branches thicker at forks. | bush/src/params.ts:56 |
radiusRatio | number | Stem base radius as a fraction of height. | bush/src/params.ts:41 |
segLen | number | Polyline step along a stem, in voxels at height 64. | bush/src/params.ts:49 |
stems | [number, number] | Stems rising from the ground, inclusive range. | bush/src/params.ts:30 |
sweepDeg | number | Total sideways bend of a stem over its length, in degrees. | bush/src/params.ts:47 |
taperExp | number | How the stems narrow: 1 is a straight cone, lower keeps them thick higher up. | bush/src/params.ts:43 |