voxolith
API reference@voxolith/gen-treeInterfaces

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

PropertyTypeDescriptionDefined in
azimuthJitterDegnumberRandom twist added to each child's golden-angle position around its parent, in degrees.tree/src/params.ts:60
branchTapernumberTaper exponent for branches (the trunk has its own).tree/src/params.ts:68
crownEndRationumber-tree/src/params.ts:56
crownStartRationumberFirst 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
heightnumberOverall height in voxels; the skeleton is scaled to hit this exactly.tree/src/params.ts:52
kindSpeciesKind-tree/src/params.ts:50
levelsBranchLevel[]Growth rules per level of branches; index 0 is the limbs off the trunk.tree/src/params.ts:72
minRadiusnumberThinnest any branch gets, in voxels.tree/src/params.ts:70
pipeExpnumberPipe-model exponent; higher keeps child branches thicker at forks.tree/src/params.ts:66
trunkTrunkParams-tree/src/params.ts:53
whorlnumber0 spawns children alternately; >0 spawns whorls of this many at once.tree/src/params.ts:62
whorlSpacingRationumberDistance between whorls as a fraction of height.tree/src/params.ts:64

On this page