Some more work done on the scripts (originally created by Zuzzabuzz) I have been playing with. Zuzz, feel free to add any of it that you want to the scripts you are working on. I was bored and stuck away from my home computer… so I tinkered. :shrug:
Added and Fixed:
-Function to grow axiom (initial symbol state) into final lcode based on defined rules and iterations.
-Above function will choose randomly from available growth rules assigned to a symbol (a->aa OR a->ab). Many options may be defined, one can be more likely to occur if it is defined more than once.
-Documented new code and features.
-Fixed lcode to produce smoother curves when not involved in branching.
-Fixed source mesh mangling. Selected polygons will not be rotated or moved by the script currently.
-Will not read anything (rules, axiom, settings, lcode) from file.
-Error checking is still very minimal.
-Early termination not supported. Don’t set iterations too high (6 is the most I tested and I have see 4 crash modeler), and do not operate on too many polygons at the same time.
-Will not output anything to file (but the object created can be saved).
Attached (should be) is an images and the (for me) updated script. The image started out as a cube. All polygons were selected and the iteration count in the script was set to six. Took modeler less than four minutes to compute. Render in layout took less than 15 seconds. In the structure you can see random selections made by the rules during generation (compare branching to non-branching areas).
Darn. The image was too big to attach. I will have to set it up with a link and won’t be able to do that until late Tuesday (December 21st). But it is a nifty image… :sad: