{"id":7447,"date":"2023-10-31T14:56:57","date_gmt":"2023-10-31T14:56:57","guid":{"rendered":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/?p=7447"},"modified":"2023-10-31T15:44:52","modified_gmt":"2023-10-31T15:44:52","slug":"jaime-gcode","status":"publish","type":"post","link":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/2023\/10\/31\/jaime-gcode\/","title":{"rendered":"Jaime &#8211; GCode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I chose to work on an algorithm I have been developing over the summer in Leah&#8217;s lab &#8211; fermat spiraling. Fermat spiraling is a space-filling algorithm that works by taking the contours of the shape (smaller and smaller equidistantly spaced curves from the first curve), spiraling them, and then connecting them again so that the path spirals in to the center, then spirals back out. This results in a single travel path <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"196\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-1024x196.png\" alt=\"\" class=\"wp-image-7454\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-1024x196.png 1024w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-300x57.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-768x147.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-1536x294.png 1536w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-2048x392.png 2048w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-1140x218.png 1140w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-920x176.png 920w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-575x110.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/process-380x73.png 380w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If the shape is more complex and has &#8220;holes&#8221;, the algorithm first connects the holes to the outermost contour, then follows the same method of finding the equidistant contours, spiraling them, then fermat spiraling them. Two of the pieces I chose were more complex, with holes on the inside that needed to be connected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I chose four shapes, the UNM logo, gears, a heart, and a duck, and turned them into curves in rhino. I then used my algorithm to fermat-spiral each of them once, then printed each spiraled shape up to a layer height of 10 before moving onto the next piece, resulting in one single travel path between each of the pieces rather than multiple back and forth for each layer: <\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"877\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-1024x877.png\" alt=\"\" class=\"wp-image-7455\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-1024x877.png 1024w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-300x257.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-768x658.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-1140x976.png 1140w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-920x788.png 920w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-575x492.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM-380x325.png 380w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.17.49-AM.png 1189w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"859\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-1024x859.png\" alt=\"\" class=\"wp-image-7456\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-1024x859.png 1024w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-300x252.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-768x645.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-1140x957.png 1140w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-920x772.png 920w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-575x483.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM-380x319.png 380w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-31-at-8.24.23-AM.png 1194w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"829\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-1024x829.png\" alt=\"\" class=\"wp-image-7462\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-1024x829.png 1024w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-300x243.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-768x622.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-1536x1244.png 1536w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-2048x1659.png 2048w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-1140x923.png 1140w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-920x745.png 920w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-575x466.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8526-380x308.png 380w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The code cannot be generated by a traditional slicer because it prints each object individually before moving on to the next contour stack. As you can see in the image above, there were very few travel paths. Unfortunately, this can also result in collisions if careful planning is not present: the nozzle dragged through the gear in the upper right corner before continuing to the next piece, melting it. The better toolpath would have traveled at the same z-height before dropping down to the first layer in order to avoid dragging through printed pieces.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I spaced the contours wider than the ender&#8217;s extrusion width intentionally in order to see the path more clearly. I was inspired by a piece that was brought in to class last week that had another space-filling algorithm with a single travel path and could be pulled apart. My original intention was to do the same, and have the shapes be able to be pulled apart in order to observe the single path. Unfortunately, I didn&#8217;t space the extrusion wide enough, which resulted in the bottom layer fusing. However, the path is still very clear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1002\" src=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-1024x1002.png\" alt=\"\" class=\"wp-image-7493\" srcset=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-1024x1002.png 1024w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-300x294.png 300w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-768x752.png 768w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-1536x1504.png 1536w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-2048x2005.png 2048w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-1140x1116.png 1140w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-920x901.png 920w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-575x563.png 575w, https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/IMG_8531-3-380x372.png 380w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-290d60ab-e5af-4f22-9a7b-9ebe5912ac94\" href=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/JaimeGouldLA4.gh.zip\">JaimeGouldLA4.gh<\/a><a href=\"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-content\/uploads\/2023\/10\/JaimeGouldLA4.gh.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-290d60ab-e5af-4f22-9a7b-9ebe5912ac94\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I chose to work on an algorithm I have been developing over the summer in Leah&#8217;s lab &#8211; fermat spiraling. Fermat spiraling is a space-filling algorithm that works by taking the contours of the shape (smaller and smaller equidistantly spaced curves from the first curve), spiraling them, and then connecting them again so that the path spirals in to the [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-7447","post","type-post","status-publish","format-standard","hentry","category-gcode_23"],"_links":{"self":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/7447","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\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/comments?post=7447"}],"version-history":[{"count":3,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/7447\/revisions"}],"predecessor-version":[{"id":7550,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/posts\/7447\/revisions\/7550"}],"wp:attachment":[{"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/media?parent=7447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/categories?post=7447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/handandmachine.org\/classes\/computational_fabrication\/wp-json\/wp\/v2\/tags?post=7447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}