Holodisk/tape.scad

28 lines
831 B
OpenSCAD
Raw Normal View History

2020-12-22 13:05:47 +00:00
// dependency: https://github.com/revarbat/BOSL
use <BOSL/transforms.scad>
2020-12-24 23:02:51 +00:00
use <holodisk_spec.scad>
module tape(start, end, height = get_holodisk_tape_height(), thickness = get_holodisk_tape_thickness()) {
2020-12-22 13:05:47 +00:00
color("RosyBrown")
up(thickness) hull() {
translate(start) sphere(thickness);
translate(end) sphere(thickness);
up(height - thickness) {
translate(start) sphere(thickness);
translate(end) sphere(thickness);
}
}
}
2020-12-24 23:02:51 +00:00
module tape_spool(r_in, r_out, height = get_holodisk_tape_height(), thickness = get_holodisk_tape_thickness()) {
2020-12-22 13:05:47 +00:00
color("RosyBrown")
up(thickness) minkowski() {
difference() {
cylinder(h=height - thickness, r=r_out);
cylinder(h=height - thickness, r=r_in);
}
sphere(thickness);
}
}