voxolith
API reference@voxolith/gen-bushInterfaces

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

PropertyTypeDescriptionDefined in
azimuthJitterDegnumberRandom twist added to each child's golden-angle position, in degrees.bush/src/params.ts:54
baseSpreadRationumberRadius of the basal cluster of stems, as a fraction of height.bush/src/params.ts:32
branchTapernumberTaper exponent for branches (the stems have their own).bush/src/params.ts:58
childEndnumber-bush/src/params.ts:52
childStartnumberFirst and last child position along a stem.bush/src/params.ts:51
clumpsnumberExtra 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
clumpSpreadRationumberHow far the extra clumps sit from the centre, as a fraction of height.bush/src/params.ts:69
curlnumberAmplitude of the coherent wobble along a stem.bush/src/params.ts:45
heightnumberOverall height in voxels; the skeleton is scaled to hit this exactly.bush/src/params.ts:28
leanDegnumberHow far the stems lean outward from vertical.bush/src/params.ts:34
leanVarDegnumberRandom spread on that lean, in degrees either way.bush/src/params.ts:36
lengthRationumberStem length as a fraction of height, and its spread.bush/src/params.ts:38
lengthVarnumber-bush/src/params.ts:39
levelsBranchLevel[]Growth rules per level of branches; index 0 is the side shoots off the stems.bush/src/params.ts:62
minRadiusnumberThinnest any branch gets, in voxels.bush/src/params.ts:60
pipeExpnumberPipe-model exponent; higher keeps child branches thicker at forks.bush/src/params.ts:56
radiusRationumberStem base radius as a fraction of height.bush/src/params.ts:41
segLennumberPolyline 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
sweepDegnumberTotal sideways bend of a stem over its length, in degrees.bush/src/params.ts:47
taperExpnumberHow the stems narrow: 1 is a straight cone, lower keeps them thick higher up.bush/src/params.ts:43

On this page