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.

23 lines
555 B

  1. use <BOSL/shapes.scad>
  2. include <BOSL/constants.scad>
  3. module cubi(s, fillet=0, edges=EDGES_ALL) {
  4. if ($preview) {
  5. cube(s, center=true);
  6. } else {
  7. cuboid(s, fillet=fillet, edges=edges);
  8. }
  9. }
  10. module screwhole(d, h, head=true) {
  11. $fn=$preview ? 5 : 20;
  12. translate([0, 0, h]) cylinder(d=d*1.5, h=d*0.5);
  13. split=h*0.5;
  14. translate([0, 0, split]) cylinder(d=d, h=(h-split));
  15. cylinder(d2=d, d1=d*0.1, h=split);
  16. cylinder(d2=d*0.6, d1=d*0.6, h=split/2);
  17. }
  18. function vec_sum(v, w) = [v.x + w.x, v.y + w.y, v.z + w.z];