camera_mount.scad 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. include <../assets/camera_mount.scad>
  2. $fn = 100;
  3. camera_mount_monitor_base();
  4. connector_move_x = (
  5. camera_mount_monitor_base.x / 2 +
  6. camera_mount_thickness * 1 +
  7. camera_mount_diameter
  8. );
  9. connector_move_z = (
  10. camera_mount_monitor_base.z / 2 +
  11. camera_mount_thickness / 2 +
  12. camera_mount_nut_diameter / 2 +
  13. camera_mount_thickness
  14. );
  15. translate([connector_move_x, 0, connector_move_z]) {
  16. camera_mount_connector();
  17. }
  18. camera_move_x = (
  19. camera_mount_camera.x / 2 +
  20. camera_mount_thickness +
  21. connector_move_x +
  22. camera_mount_monitor_base.z / 2+
  23. camera_mount_thickness * 2
  24. );
  25. camera_move_y = (
  26. camera_mount_screw_diameter * 2
  27. );
  28. camera_move_z = (
  29. camera_mount_monitor_base.z / 2 +
  30. camera_mount_thickness / 2 +
  31. camera_mount_nut_diameter / 2 +
  32. camera_mount_thickness -
  33. camera_mount_camera.z / 2 -
  34. camera_mount_thickness -
  35. camera_mount_screw_diameter * 2
  36. );
  37. translate([camera_move_x, camera_move_y, camera_move_z]) {
  38. rotate([90, 0, 0]) {
  39. camera_mount_camera();
  40. }
  41. }