Skeleton
The branch structure growBranches returns, in skeleton space (seed origins as given, y up), before any voxel is written. Rasterise it with capsule / line3 per segment, or at a finer scale with drawSkeletonFine.
Defined in: branch.ts:131
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
segments | Segment[] | - | branch.ts:133 |
spread | number | Largest horizontal distance from the origin. | branch.ts:138 |
stems | Stem[] | - | branch.ts:132 |
tips | Tip[] | - | branch.ts:134 |
topY | number | Highest point reached. | branch.ts:136 |
whorlY | number[] | Heights at which whorls were placed, when whorls are in use. | branch.ts:140 |
ShadeOptions
Inputs to shadeByExposure: which voxels to shade, the hull and sky occlusion to score them against, and the roles to hand out.
Stem
One grown stem: a polyline from its attachment point to its tip, with a radius and an arc length per point. Children share the exact point object they attached at.