Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BoolDiceTray = true;
- /* [Hidden] */
- IntP_D = 10; //Depth of all panels
- IntDT_W = 44; //Width of Dice Tray
- IntDT_H = 110; //Height of Dice Tray
- IntMag_D = 1.1; //Depth of magnet holes
- IntMag_R = 1.6; //Radius of magnet holes
- Cutter = .01; //How far to overextend diffs to prevent clipping
- if(BoolDiceTray){
- DiceTray();
- }
- module DiceTray(){
- difference(){
- cube([IntDT_W,IntDT_H,IntP_D]);
- translate([IntDT_W-5,5,IntP_D-IntMag_D]){
- MagHole();
- }
- translate([5,IntDT_H-5,IntP_D-IntMag_D]){
- MagHole();
- }
- }
- }
- module MagHole(){
- color("#FF00FF"){
- union(){
- cylinder(IntMag_D+Cutter,IntMag_R,IntMag_R, $fn=100);
- cylinder((IntMag_D+Cutter)/2,IntMag_R+1,IntMag_R, $fn=100);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement