diff --git a/1.png b/1.png new file mode 100644 index 0000000..de4b1c7 Binary files /dev/null and b/1.png differ diff --git a/2.png b/2.png new file mode 100644 index 0000000..49cf77b Binary files /dev/null and b/2.png differ diff --git a/3.png b/3.png new file mode 100644 index 0000000..d21436a Binary files /dev/null and b/3.png differ diff --git a/4.png b/4.png new file mode 100644 index 0000000..87ee97e Binary files /dev/null and b/4.png differ diff --git a/5.png b/5.png new file mode 100644 index 0000000..d92e306 Binary files /dev/null and b/5.png differ diff --git a/6.png b/6.png new file mode 100644 index 0000000..e036e1b Binary files /dev/null and b/6.png differ diff --git a/7.png b/7.png new file mode 100644 index 0000000..cd2d3c9 Binary files /dev/null and b/7.png differ diff --git a/8.png b/8.png new file mode 100644 index 0000000..bdd63f3 Binary files /dev/null and b/8.png differ diff --git a/9.png b/9.png new file mode 100644 index 0000000..c063782 Binary files /dev/null and b/9.png differ diff --git a/README.md b/README.md index 91c9197..52272c1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,48 @@ # lab03-grammars -Let's practice using grammars! For this lab, please pull up the L-system node in Houdini. + +# Jiefu Ling and Shixuan Fang +# Wheat Grammar +Premise: F \ +Angle: 20 \ +Rule: F->FF[-FF]F[-FF]FF- \ +square1 +square2 +square3 + +# Square Grammar +Premise: +F \ +Angle: 90 \ +Rule: F->F-F+F+F-F \ +square1 +square2 +square3 + +# Custom Plant +Branch: \ + Premise: FFFA \ + Angle: 30 \ + Rule: A->[B]////[B]////[B] \ + B->-FFFAK \ + +Leaf: \ + Premise: [A][B] \ + Angle: 20 \ + Rule: A->[+A{.].C.} \ + B->[-B{.].C.} \ + C->FFFC \ \ +square1 +square2 +square3 \ + +**Rule Definitions:** +1. **Rule 1**: Utilized for constructing the primary branches. +2. **Rule 2**: Appended a rotated line at the termination of each branch to simulate the finer nuances of branch formations. + +**Leaf Representation:** +- In our design, the symbol `K` stands for the leaf. This leaf structure is modeled using another L-system. + +**Leaf Generation:** +- To visualize the leaf, we employ polyton triangles. By connecting these triangles, we achieve a detailed representation of the leaf structure. ## 1. Wheat grammar puzzle Look at these iterations (n = 1, 2, 3) of a one-rule grammar. Using the built in symbols in Houdini, design a grammar that produces this output. Take a screenshot of your rules.\