Pip-Boy inspired phone holder built around the PINE64 PinePhone
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.

36 lines
1.4 KiB

  1. use <specs_phone.scad>
  2. use <specs_strap.scad>
  3. function get_platform_size() = [
  4. get_phone_size().x - 30,
  5. get_phone_size().y - 5,
  6. get_platform_wall()*3
  7. ];
  8. function get_platform_top_size() = [
  9. get_platform_size().x - 2*get_platform_wall(),
  10. get_platform_size().y - 2*get_platform_wall(),
  11. get_platform_size().z - get_platform_wall()];
  12. function get_platform_top_pos() = [0, 0, (get_platform_size().z-get_platform_top_size().z)/2];
  13. function get_platform_wall() = 3;
  14. function get_platform_strap_connector_offset() = [
  15. (get_platform_size().x/2 - get_link_segment_size().y/2) - 3,
  16. get_platform_size().y/2 + 4,
  17. -get_link_segment_size().z/2 + 0.5
  18. ];
  19. function get_platform_lock_pin_size() = [20, 4, 3];
  20. function get_platform_lock_arm_size() = [46, 2, 3];
  21. function get_platform_lock_pin_pos() = [-get_platform_lock_pin_size().x/2, -get_platform_top_size().y/2 + get_platform_wall()*4 + 1, get_platform_top_size().z/2];
  22. function get_platform_lock_button_profile(groove) = groove ? [10, 5] : [7, 4.5];
  23. function get_platform_lock_button_size(groove) = [
  24. get_platform_lock_button_profile(groove).x,
  25. get_platform_size().y * 0.25 + get_platform_lock_pin_size().y + 2,
  26. get_platform_lock_button_profile(groove).y
  27. ];
  28. function get_platform_lock_button_pos() = [
  29. get_platform_lock_pin_size().x/2 + 5,
  30. -get_platform_lock_button_size(false).y/2,
  31. -get_platform_size().z/2
  32. ];