{"id":13559,"date":"2016-12-07T22:14:41","date_gmt":"2016-12-08T03:14:41","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=13559"},"modified":"2016-12-07T22:14:41","modified_gmt":"2016-12-08T03:14:41","slug":"some-openscad-2d-svg-things-for-josh","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2016\/12\/07\/some-openscad-2d-svg-things-for-josh\/","title":{"rendered":"some OpenSCAD 2D SVG things for Josh \u00e2\u20ac\u00a6"},"content":{"rendered":"<p>I&#8217;ve found that <a href=\"http:\/\/www.openscad.org\/\">OpenSCAD<\/a> is really good for producing 2d designs in a very small amount of code. Here are three examples to play with:<\/p>\n<p><strong><a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13564\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d.png\" alt=\"\" width=\"608\" height=\"513\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d.png 608w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d-160x135.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d-320x270.png 320w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a>Diagonal Section through Menger sponge<\/strong> (<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d.svg\">SVG<\/a>) (<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-2d.scad.txt\">OpenSCAD source<\/a>) \u00e2\u20ac\u201d this may take a while to render, as it&#8217;s making a Menger sponge in 3D and then slicing through it to make the projection.<\/p>\n<p>(If you take out the <em>projection()<\/em> clause, it looks like this in 3D:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13562\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45.png\" alt=\"\" width=\"608\" height=\"513\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45.png 608w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-160x135.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/centre_menger-45-320x270.png 320w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/>)<\/p>\n<p><a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13561\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d.png\" alt=\"\" width=\"608\" height=\"513\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d.png 608w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d-160x135.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d-320x270.png 320w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><strong>Pattern from Ak Medrese, Nigde, Turkey<\/strong> (<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d.svg\">SVG<\/a>) (<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Ak_Medrese-2d.scad.txt\">OpenSCAD source<\/a>) \u00e2\u20ac\u201d design after a construction by <a href=\"https:\/\/www.academia.edu\/28244436\/Pattern_Papers_Issue_1_Ak_Medrese_Nigde\">Eric Broug<\/a>.<\/p>\n<p><a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13565\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D.png\" alt=\"\" width=\"608\" height=\"513\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D.png 608w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D-160x135.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D-320x270.png 320w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><strong>Basis of a pattern from the Alhambra<\/strong> (<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D.svg\">SVG<\/a>) (<a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2016\/12\/Alhambra-basis-2D.scad.txt\">OpenSCAD source<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve found that OpenSCAD is really good for producing 2d designs in a very small amount of code. Here are three examples to play with: Diagonal Section through Menger sponge (SVG) (OpenSCAD source) \u00e2\u20ac\u201d this may take a while to render, as it&#8217;s making a Menger sponge in 3D and then slicing through it to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2],"tags":[3023,3015,2905,1855],"class_list":["post-13559","post","type-post","status-publish","format-standard","hentry","category-goatee-stroking-musing-or-something","tag-cortex","tag-openscad","tag-pattern","tag-svg"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-3wH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/13559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=13559"}],"version-history":[{"count":2,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/13559\/revisions"}],"predecessor-version":[{"id":13571,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/13559\/revisions\/13571"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=13559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=13559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=13559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}