My self designed awesome 3D printer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tslot_xy.scad 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // #######################################################
  2. // ####################### T-Slots #######################
  3. // #######################################################
  4. include <tslot.scad>
  5. module tslot_x(slot, length) {
  6. color("white")
  7. if (slot == 30) {
  8. translate([0, 0, slot])
  9. rotate([0, 90, 0])
  10. tslot30(length, false);
  11. } else {
  12. translate([0, -5, slot + 5])
  13. rotate([0, 90, 0])
  14. tslot20(length, false);
  15. }
  16. }
  17. module tslot_y(slot, length) {
  18. color("white")
  19. if (slot == 30) {
  20. translate([0, 0, slot])
  21. rotate([-90, 0, 0])
  22. tslot30(length, false);
  23. } else {
  24. translate([-5, 0, slot + 5])
  25. rotate([-90, 0, 0])
  26. tslot20(length, false);
  27. }
  28. }
  29. module tslot_z(slot, length) {
  30. color("white")
  31. if (slot == 30) {
  32. translate([0, 0, 0])
  33. tslot30(length, false);
  34. } else {
  35. translate([-5, -5, 0])
  36. tslot20(length, false);
  37. }
  38. }
  39. module tslot_2_x(slot, length) {
  40. color("white")
  41. if (slot == 30) {
  42. translate([0, 0, slot])
  43. rotate([0, 90, 0])
  44. tslot30_3060(length, false);
  45. } else {
  46. translate([0, -5, slot + 5])
  47. rotate([0, 90, 0])
  48. tslot20_2040(length, false);
  49. }
  50. }
  51. module tslot_2_y(slot, length) {
  52. color("white")
  53. if (slot == 30) {
  54. translate([0, 0, slot])
  55. rotate([-90, 0, 0])
  56. tslot30_3060(length, false);
  57. } else {
  58. translate([-5, 0, slot + 5])
  59. rotate([-90, 0, 0])
  60. tslot20_2040(length, false);
  61. }
  62. }
  63. module tslot_2_z(slot, length) {
  64. color("white")
  65. if (slot == 30) {
  66. translate([0, 0, 0])
  67. tslot30_3060(length, false);
  68. } else {
  69. translate([-5, -5, 0])
  70. tslot20_2040(length, false);
  71. }
  72. }