platform.scad 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. include <../assets/platform.scad>
  2. $fn = 100;
  3. platform_mount_object();
  4. top_position_y
  5. = platform_height / 2
  6. + platform_thickness / 2;
  7. top_position_z
  8. = platform_depth / 2
  9. - platform_full_support_depth() / 2;
  10. translate([0, top_position_y, top_position_z]) {
  11. rotate([90, 0, 0]) {
  12. platform_top_object();
  13. }
  14. }
  15. side_position_x
  16. = platform_width / 2
  17. + platform_thickness / 2;
  18. side_position_z
  19. = platform_depth / 2
  20. - platform_full_support_depth() / 2;
  21. translate([side_position_x, 0, side_position_z]) {
  22. rotate([90, 0, 90]) {
  23. platform_side_object();
  24. }
  25. }
  26. translate([-side_position_x, 0, side_position_z]) {
  27. rotate([90, 0, 90]) {
  28. platform_side_object();
  29. }
  30. }
  31. for (count = platform_connector_holes()) {
  32. move_z
  33. = count
  34. + platform_depth / 2
  35. - platform_full_support_depth() / 2
  36. - platform_connector_space() / 2;
  37. move_x
  38. = platform_width / 2
  39. - platform_connector_depth() / 2;
  40. move_y
  41. = platform_height / 2
  42. - platform_connector_depth() / 2;
  43. translate([move_x, move_y, move_z]) {
  44. platform_connector_object(true);
  45. }
  46. translate([-move_x, move_y, move_z]) {
  47. platform_connector_object(false);
  48. }
  49. }