Holodisk model from the Fallout and Fallout 2 games.
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.
 
 

28 lines
831 B

  1. // dependency: https://github.com/revarbat/BOSL
  2. use <BOSL/transforms.scad>
  3. use <holodisk_spec.scad>
  4. module tape(start, end, height = get_holodisk_tape_height(), thickness = get_holodisk_tape_thickness()) {
  5. color("RosyBrown")
  6. up(thickness) hull() {
  7. translate(start) sphere(thickness);
  8. translate(end) sphere(thickness);
  9. up(height - thickness) {
  10. translate(start) sphere(thickness);
  11. translate(end) sphere(thickness);
  12. }
  13. }
  14. }
  15. module tape_spool(r_in, r_out, height = get_holodisk_tape_height(), thickness = get_holodisk_tape_thickness()) {
  16. color("RosyBrown")
  17. up(thickness) minkowski() {
  18. difference() {
  19. cylinder(h=height - thickness, r=r_out);
  20. cylinder(h=height - thickness, r=r_in);
  21. }
  22. sphere(thickness);
  23. }
  24. }