l-systems

Information on L-Systems

…衆ロ難τιáo~ 提交于 2020-01-01 05:06:31
问题 I am about to start a project for university to build a procedural city for a pre existing project. I was wondering if any of you have had any experience coding L-Systems before and know a good place for me to start out. I have done a bit of work before using procedural methods and Perlin Noise and fBm so I get the premise of what an L-System is in the fractal sense. I am more looking for a place where maybe can push me in the direction of coding the L-System. Any help or technical documents

Swift L-System Algae

隐身守侯 提交于 2019-12-24 15:43:44
问题 So this is just something I'm doing for fun in the IBM Swift sandbox. I did a L-system algae in Scala recently and though it would be cool to do it in Swift to see how the language compares. https://github.com/I2obiN/L-System-Algorithms-and-Fractals/blob/master/algae.scala That's the Scala one to show you what I'm aiming for, and this is what I have in Swift; /** * Created by t.hood on 26/01/16 * L-System Algae * */ import Foundation // Mapping function for string func stringmap(x: String) ->

Applying a (possibly unary) function recursively onto itself

倖福魔咒の 提交于 2019-12-23 18:44:06
问题 I am trying to express an L-system in Haskell https://en.m.wikipedia.org/wiki/L-system, specifically Lindenmayer's original L-system for modelling the growth of algae. variables : A B constants : none axiom : A rules : (A → AB), (B → A) For me the natural way to approach this problem is to apply the rules to each element in the list, which (to me) means that I could model the solution using some type of string substitution. Example: For the list of "characters" [A, B, A we'd apply the rules

Speeding up an L-System renderer in C#/WPF

て烟熏妆下的殇ゞ 提交于 2019-12-10 10:39:51
问题 lsys is a blazing fast L-System renderer written in CoffeeScript. Below is a simple renderer in C# and WPF. It is hardcoded to render this example. The result when run looks as follows: A mouse-click in the window will adjust the angleGrowth variable. The re-calculation of the GeometryGroup as well as building the Canvas usually take much less than a tenth of a second. However, the actual screen update seems to take much longer. Any suggestions for how to make this faster or more efficient?

Speeding up an L-System renderer in C#/WPF

本秂侑毒 提交于 2019-12-06 05:53:48
lsys is a blazing fast L-System renderer written in CoffeeScript. Below is a simple renderer in C# and WPF. It is hardcoded to render this example . The result when run looks as follows: A mouse-click in the window will adjust the angleGrowth variable. The re-calculation of the GeometryGroup as well as building the Canvas usually take much less than a tenth of a second. However, the actual screen update seems to take much longer. Any suggestions for how to make this faster or more efficient? It's currently way slower than the CoffeeScript/JavaScript version... :-) using System; using System