{"id":5454,"date":"2023-09-14T13:46:05","date_gmt":"2023-09-14T13:46:05","guid":{"rendered":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/?p=5454"},"modified":"2023-09-14T13:46:07","modified_gmt":"2023-09-14T13:46:07","slug":"michel-large-assignment-1-l-systems","status":"publish","type":"post","link":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/2023\/09\/14\/michel-large-assignment-1-l-systems\/","title":{"rendered":"Michel -Large Assignment 1: L-Systems"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Part 1: Turtle Geometry<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1.1 a) what is the radius of this circle? Circumference of a circle: C = 2*Pi*r or r = C\/2*pi. Since the polygon halt function moves forward 1 and then turns right 1 degree. it will do this 360 times so the Circumference is 360. r = 360\/2pi = 57.29578.<br><br>b) Using the same idea as part a for <code>polygonHalt(2,2), polyHalt(1,1), polyHalt(.5,.5<\/code>), we get the same radius here as the curvature is the same for each and the same for part a, so our radius will be the same.             360\/2pi =57.29<br><br>c) The simple closed path theorem states that the sum of the exterior angles of any polygon are equal to 360 degrees. To find the exterior angles corresponding to A and B we take: (180-A) and (180-B) since the exterior angle and the interior angle would just be a continuation of the line (180 degrees). So, the sum of these exterior angles is 360 therefore the formula is: 360 = (180 &#8211; A) + (180-B).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 2: L-Systems<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">2.1 First plant L-System: Desert Bird of Paradise.<br>I found this plant at my parents house its a shrub. My Mom has a good variety of natural desert vegetation so I walked around their property looking for interesting plants and this was the first one that I chose. The hard part of this L-System was keeping the side branches from going on indefinitely I had to set rules for different number of sets of leaves for each branching side so my rule set for this system is pretty messy. I also had cases for left and right side branches of the stem so that  could make the branches curve upward. This shrub also has some cool flowers that I wanted to try to incorporate but I wasn&#8217;t able to figure out how to make them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14642.jpg\" alt=\"\" class=\"wp-image-5465\" style=\"width:281px;height:341px\" width=\"281\" height=\"341\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14642.jpg 496w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14642-247x300.jpg 247w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14642-380x461.jpg 380w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"524\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant2.08825-1.png\" alt=\"\" class=\"wp-image-5472\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant2.08825-1.png 368w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant2.08825-1-211x300.png 211w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Limiting the number of branches.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"900\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1.png\" alt=\"\" class=\"wp-image-5471\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1.png 900w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1-300x300.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1-768x768.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1-575x575.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/plant49.62169-1-380x380.png 380w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Letting the L-System run.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The second plant I found on my parent property I&#8217;m not sure the name of, it is a little bush with small yellow flowers at the ends. This L-System was pretty straight forward much like the bushy systems we made in class. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"599\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14638.jpg\" alt=\"\" class=\"wp-image-5474\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14638.jpg 599w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14638-300x300.jpg 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14638-150x150.jpg 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14638-575x575.jpg 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14638-380x380.jpg 380w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"491\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant5.97715.png\" alt=\"\" class=\"wp-image-5475\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant5.97715.png 900w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant5.97715-300x164.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant5.97715-768x419.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant5.97715-575x314.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant5.97715-380x207.png 380w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The third plant I wanted to do a tree so I found one on campus near the duck pond.  I&#8217;m not sure what kind of tree it is but i liked the sparseness compared to some others around you get to see more of the branch structure and some nice leaves near the ends. The leaves were the hardest part for me to figure out, lots of trial and error with the bezierVertices function. The leaves here are much darker than what i ended up choosing <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"512\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14646.jpg\" alt=\"\" class=\"wp-image-5476\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14646.jpg 384w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14646-225x300.jpg 225w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14646-380x507.jpg 380w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"900\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715.png\" alt=\"\" class=\"wp-image-5479\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715.png 900w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715-300x300.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715-150x150.png 150w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715-768x768.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715-575x575.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/Plant95.156715-380x380.png 380w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Link to my code: <a href=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/MichelRobertLA1.zip\">https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/MichelRobertLA1.zip<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fabrication:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I was originally going to do a T-shirt print for my fabrication but the old printer I have that I thought was inkjet turned out to be a laser printer so it didn&#8217;t work! I went and got some glossy sticker paper to print my tree design on. The process was quite easy. The company that makes the sicker paper has designs so you can print onto their sticker paper and cut out the shape you want.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"320\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14648.jpg\" alt=\"\" class=\"wp-image-5625\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14648.jpg 240w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14648-225x300.jpg 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"320\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14649.jpg\" alt=\"\" class=\"wp-image-5626\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14649.jpg 240w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14649-225x300.jpg 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"320\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14651.jpg\" alt=\"\" class=\"wp-image-5627\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14651.jpg 240w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14651-225x300.jpg 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"320\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14652.jpg\" alt=\"\" class=\"wp-image-5630\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14652.jpg 240w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14652-225x300.jpg 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"320\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14653.jpg\" alt=\"\" class=\"wp-image-5632\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14653.jpg 240w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/09\/14653-225x300.jpg 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I used a round metal bowl i found to create a circle around the image. I used an exacto knife to cut around the circle and scissors to fix any rough spots from the exacto cutting. The first sticker I cut out was a little too large in diameter so I found a smaller metal bowl to use for cutting two others and then i cut two into squares as well.<br>I would say I&#8217;m not super pleased with the outcome because my original plan didn&#8217;t work out, I would have liked to see the design on a white T-shirt, but overall I think the stickers came out nice. I already stuck one to my water bottle and will probably stick one to my laptop and save the rest of them for other objects!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part 1: Turtle Geometry 1.1 a) what is the radius of this circle? Circumference of a circle: C = 2*Pi*r or r = C\/2*pi. Since the polygon halt function moves forward 1 and then turns right 1 degree. it will do this 360 times so the Circumference is 360. r = 360\/2pi = 57.29578. b) Using the same idea as [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,24],"tags":[],"class_list":["post-5454","post","type-post","status-publish","format-standard","hentry","category-lsystems_23","category-studentwork23"],"_links":{"self":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/5454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/comments?post=5454"}],"version-history":[{"count":4,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/5454\/revisions"}],"predecessor-version":[{"id":5653,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/5454\/revisions\/5653"}],"wp:attachment":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/media?parent=5454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/categories?post=5454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/tags?post=5454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}