Skip to content

Instantly share code, notes, and snippets.

@patmandenver
Last active April 27, 2022 20:36
Show Gist options
  • Save patmandenver/6e7cdce28746a48e00d5ea42b50cd74f to your computer and use it in GitHub Desktop.
Save patmandenver/6e7cdce28746a48e00d5ea42b50cd74f to your computer and use it in GitHub Desktop.
//
// Created by Patrick Bailey iQless.com
//
////////////////////////////////////////
$fn=200;
moai_statue = "moai-small-no_overhang.stl";
magnet_dia = 32.2; //33 too big
magnet_height = 3.3;
magnet_depth = .8;
split_view = true;
if(split_view){
difference(){
moai_statue_rotate_and_cut();
translate([0,-200,0]){
cube(400);
}
}
}
else{
moai_statue_rotate_and_cut();
}
module moai_statue_rotate_and_cut(){
difference(){
translate([0,0,-1.5]){
rotate([-70,0,0]){
moai_statue_import();
}
}
translate([0,0,-200]){
cube(400, center=true);
}
magnet_space(magnet_height, magnet_depth, magnet_dia);
}
}
module magnet_space(magnet_height, magnet_depth, magnet_dia){
translate([0,40, magnet_height/2 + magnet_depth]){
cylinder(magnet_height, d = magnet_dia, center=true);
}
}
module moai_statue_import(){
translate([-77.6,-68.6]){
import(moai_statue, center=true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment