Skip to content

Instantly share code, notes, and snippets.

@kintel
Last active March 3, 2019 20:58
Show Gist options
  • Save kintel/fb30ba45f0adca4969b4f03ef082817f to your computer and use it in GitHub Desktop.
Save kintel/fb30ba45f0adca4969b4f03ef082817f to your computer and use it in GitHub Desktop.
// Box should have 50 mm sides
// Holes should be 5 mm in diameter
//
color("Blue") translate([0,0,12.5]) linear_extrude(height=5) import("box-w-holes-graffle.svg", center=true);
translate([15,15, 10]) cylinder(h=20, r=4.5, center=true, $fn=32);
translate([15,-15, 10]) cylinder(h=20, r=4.5, center=true, $fn=32);
translate([-15,15, 10]) cylinder(h=20, r=4.5, center=true, $fn=32);
translate([-15,-15, 10]) cylinder(h=20, r=4.5, center=true, $fn=32);
translate([0,0,2]) cube([50, 50, 20], center=true);
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 559.27557 782.88977" width="559.27557pt" height="782.88977pt" xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata> Produced by OmniGraffle 6.6.2 <dc:date>2019-03-03 20:56:03 +0000</dc:date></metadata><defs/><g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"><title>Canvas 1</title><g><title>Layer 1</title><path d="M 141.73228 141.73228 L 141.73228 283.46457 L 283.46457 283.46457 L 283.46457 141.73228 Z M 180.10071 160.05676 C 185.63573 165.59175 185.63573 174.56573 180.10071 180.10071 C 174.56573 185.63573 165.59175 185.63573 160.05676 180.10071 C 154.52175 174.56573 154.52175 165.59175 160.05676 160.05676 C 165.59175 154.52175 174.56573 154.52175 180.10071 160.05676 M 265.14008 160.05676 C 270.6751 165.59175 270.6751 174.56573 265.14008 180.10071 C 259.6051 185.63573 250.63112 185.63573 245.09613 180.10071 C 239.56112 174.56573 239.56112 165.59175 245.09613 160.05676 C 250.63112 154.52175 259.6051 154.52175 265.14008 160.05676 M 180.10071 245.09613 C 185.63573 250.63112 185.63573 259.6051 180.10071 265.14008 C 174.56573 270.6751 165.59175 270.6751 160.05676 265.14008 C 154.52175 259.6051 154.52175 250.63112 160.05676 245.09613 C 165.59175 239.56112 174.56573 239.56112 180.10071 245.09613 M 265.14008 245.09613 C 270.6751 250.63112 270.6751 259.6051 265.14008 265.14008 C 259.6051 270.6751 250.63112 270.6751 245.09613 265.14008 C 239.56112 259.6051 239.56112 250.63112 245.09613 245.09613 C 250.63112 239.56112 259.6051 239.56112 265.14008 245.09613" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/></g></g></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment