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 2.2KB

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