Açıklama Yok
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.

ball_and_bearing.scad 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2022 - 2023 Thomas Buck (thomas@xythobuz.de)
  3. * Philipp Schönberger (mail@phschoen.de)
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * See <http://www.gnu.org/licenses/>.
  16. */
  17. include<config.scad>;
  18. use<bearing.scad>;
  19. use<util.scad>;
  20. //ball_and_bearing_holder();
  21. bearing_mount_for_hull();
  22. module ball_and_bearing_holder()
  23. {
  24. // trackball itself
  25. if(draw_trackball)
  26. color("red")
  27. sphere(d = trackball_dia, $fn = $fn);
  28. bearing_rot_trans()
  29. bearing_holder();
  30. }
  31. module bearing_rot_trans()
  32. {
  33. for (r = [0 : bearing_count - 1])
  34. rotate([0, 0, bearing_mount_angle_off + 360 / bearing_count * r])
  35. {
  36. rotate([0, sphere_angle_at_rh(trackball_dia *0.10, trackball_dia / 2) , 0])
  37. translate([0, 0, -trackball_dia / 2])
  38. rotate([0,0,90]) // move flange to bottom
  39. children();
  40. }
  41. }