Skip to content

About

LSystem generator using JavaFX

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

LSystemGenerator

A JavaFX tool for building L-systems and looking at what they grow into. Give it an axiom and a rule set, it expands them, and a turtle walks the result into a figure that can be exported as OBJ and opened in Blender.

LSystem(axiom=F, rules={F=FF+[+F-F-F]-[-F+F+F]}, iterations=6, angle=90)
An L-system generated in the app The same L-system rendered in Blender

What it does

  • Expand an L-system from an axiom, a rule set, an angle and an iteration count.
  • Save and load systems, so a good one can be kept and changed later.
  • Export the turtle geometry as OBJ for Blender.

Running it

./mvnw javafx:run

Needs JDK 17 or newer. The Maven wrapper is in the repo, so there is nothing to install first.

State

Written in May 2023. Building a full 3D mesh from the triangles is still unfinished, which is why the export is a flat figure that usually gets extruded in Blender. The rest of the old TODO list is done.

MIT licensed.

About

LSystem generator using JavaFX

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages