Advertisement
Guest User

Untitled

a guest
Jan 11th, 2023
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. BoolDiceTray = true;
  2.  
  3. /* [Hidden] */
  4. IntP_D = 10; //Depth of all panels
  5. IntDT_W = 44; //Width of Dice Tray
  6. IntDT_H = 110; //Height of Dice Tray
  7. IntMag_D = 1.1; //Depth of magnet holes
  8. IntMag_R = 1.6; //Radius of magnet holes
  9. Cutter = .01; //How far to overextend diffs to prevent clipping
  10.  
  11. if(BoolDiceTray){
  12. DiceTray();
  13. }
  14.  
  15.  
  16. module DiceTray(){
  17. difference(){
  18. cube([IntDT_W,IntDT_H,IntP_D]);
  19. translate([IntDT_W-5,5,IntP_D-IntMag_D]){
  20. MagHole();
  21. }
  22. translate([5,IntDT_H-5,IntP_D-IntMag_D]){
  23. MagHole();
  24. }
  25. }
  26. }
  27.  
  28. module MagHole(){
  29. color("#FF00FF"){
  30. union(){
  31. cylinder(IntMag_D+Cutter,IntMag_R,IntMag_R, $fn=100);
  32. cylinder((IntMag_D+Cutter)/2,IntMag_R+1,IntMag_R, $fn=100);
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement