heckj / Lindenmayer

A swift library that implements a parametric Lindenmayer system and related SwiftUI views for presentation of the results of your systems.
https://swiftpackageindex.com/heckj/Lindenmayer/main/documentation/lindenmayer
MIT License
35 stars 4 forks source link

enable '@V' rolling to horizontal 3D rendering command/module #11

Closed heckj closed 2 years ago

heckj commented 2 years ago

In Honda's example model (pg 68 of PARAMETRIC L-SYSTEMS AND THEIR APPLICATION TO THE MODELLING AND VISUALIZATION OF PLANTS), uses the L+C module @V, which is described as maintaining the current axis of "growth", but rolling on that axis so that branching to the left or right results in a horizontal (from the world perspective) divergence.

I haven't sorted out the relevant math to enable that within the 3D visualizations currently, but I'd like to be able to showcase that model as an example.

heckj commented 2 years ago

resolved with https://github.com/heckj/Lindenmayer/commit/c8999bcf68848c8ddb09bf8191f6512a40ac9b0c