# PlantR1

by mraz

Short link: http://malsys.cz/g/mbxwq6XW

Loading 3D model

of PlantR1

### Comments

comments powered by Disqus### Source code

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | lsystem leaf { set symbols axiom = A; set iterations = 1; interpret < as StartPolygon(#00FF00,0); interpret > as EndPolygon; interpret r as RecordPolygonVertex; interpret + as TurnLeft(30); interpret - as TurnLeft(-30); interpret F as DrawForward(10,0.1); interpret S as Roll(random(-90,90)); rewrite A to S < r + F r - F r - F r - - - - F r - F r - F >; } lsystem PlantR1 { set symbols axiom = X; set initialAngle = 90; set iterations = 4; interpret F as DrawForward(4); interpret + as TurnLeft(20); interpret - as TurnLeft(-20); interpret [ as StartBranch; interpret ] as EndBranch; interpret X as lsystem leaf; interpret S as Yaw(random(-20,20)); rewrite X to S F [ + X ] S F [ - X ] + X; rewrite F to F F; } process PlantR1 with ThreeJsRenderer set cameraPosition = {42, 148, -55} set cameraUpVector = {-0.14, 0.95, -0.28} set cameraTarget = {3, 96, 10}; |

### Thumbnail extension

1 2 3 4 5 | process PlantR1 with ThreeJsRenderer set cameraPosition = {20, 81, -52} set cameraUpVector = {-0.2, 0.88, -0.44} set cameraTarget = {-5, 50, 9} set iterations = 3; |