Skip to content

Instantly share code, notes, and snippets.

@jackhumbert
Created April 2, 2015 04:01
Show Gist options
  • Save jackhumbert/ab9a315d8596ca66a336 to your computer and use it in GitHub Desktop.
Save jackhumbert/ab9a315d8596ca66a336 to your computer and use it in GitHub Desktop.
/*------------------------------------------------------------------------- */
/* Left w/o MC */
/*
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([0,0,0]) cube([77,90,90]);
translate([77,0,0]) cube([77,90,90]);
translate([0,0,0]) cube([770,40,90]);
translate([77+77,40,0]) cylinder(r=20,h=5);
translate([212,40,0]) cylinder(r=10,h=7);
}
*/
/*------------------------------------------------------------------------- */
/* Left w/ MC */
/*
difference()
{
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([0,0,0]) cube([77,90,90]);
translate([77,0,0]) cube([77,90,90]);
translate([77+77,40,0]) cylinder(r=20,h=5);
}
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([0,0,0]) cube([77,90,90]);
translate([77,0,0]) cube([77,90,90]);
translate([0,0,0]) cube([770,40,90]);
translate([77+77,40,0]) cylinder(r=20,h=5);
translate([212,40,0]) cylinder(r=10,h=7);
}
}
*/
/*------------------------------------------------------------------------- */
/* Middle w/o peg */
/*
union()
{
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([0,0,0]) cube([77,90,90]);
translate([77+77,0,0]) cube([77,90,90]);
translate([200,0,0]) cube([77,90,90]);
translate([117,0,0]) cube([77,90,90]);
translate([117,40,0]) cylinder(r=20,h=40);
}
translate([77,40,0]) cylinder(r=20,h=4);
}
/*------------------------------------------------------------------------- */
/* Middle with peg */
/*
difference()
{
union()
{
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([0,0,0]) cube([77,90,90]);
translate([77+77,0,0]) cube([77,90,90]);
translate([200,0,0]) cube([77,90,90]);
}
translate([77+77,40,0]) cylinder(r=20,h=4);
translate([77,40,0]) cylinder(r=20,h=4);
}
union()
{
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([0,0,0]) cube([77,90,90]);
translate([77+77,0,0]) cube([77,90,90]);
translate([200,0,0]) cube([77,90,90]);
translate([117,0,0]) cube([77,90,90]);
translate([117,40,0]) cylinder(r=20,h=40);
}
translate([77,40,0]) cylinder(r=20,h=4);
}
}
*/
/*------------------------------------------------------------------------- */
/*Right Part 1 */
/*
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([77,0,0]) cube([77,90,90]);
translate([77,40,0]) cylinder(r=20,h=5);
translate([77+77,0,0]) cube([77,90,90]);
translate([0,41,0]) cube([770,40,90]);
translate([22,40,0]) cylinder(r=10,h=7);
translate([200,0,0]) cube([77,90,90]);
}
*/
/*------------------------------------------------------------------------- */
/*Right Part 2 */
difference()
{
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([77,0,0]) cube([77,90,90]);
translate([77,40,0]) cylinder(r=20,h=5);
translate([77+77,0,0]) cube([77,90,90]);
translate([200,0,0]) cube([77,90,90]);
}
difference()
{
import("BOTPLK50-MSH.stl", convexity=3);
translate([77,0,0]) cube([77,90,90]);
translate([77,40,0]) cylinder(r=20,h=5);
translate([77+77,0,0]) cube([77,90,90]);
translate([0,41,0]) cube([770,40,90]);
translate([22,40,0]) cylinder(r=10,h=7);
translate([200,0,0]) cube([77,90,90]);
}
}
/*------------------------------------------------------------------------- */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment