fixup! [WIP] primitives library

This commit is contained in:
djerun 2025-06-15 16:29:42 +02:00
commit cfc13bbc13
2 changed files with 2 additions and 8 deletions

View file

@ -1,13 +1,7 @@
include <globals.scad>
include <primitives.scad>
use <chamfer.scad>
module partial_ring(part, radius, thickness, height) {
rotate(180-180*part, [0, 0, 1])
rotate_extrude(angle=360*part)
translate([radius, 0])
square([thickness, height], center=true);
}
module headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNESS, part=PART, stretch_len=STRETCH_LEN, tip_len=TIP_LEN, tip_bend=TIP_BEND, rake_depth=RAKE_DEPTH, rake_width=RAKE_WIDTH, rake_stretch=RAKE_STRETCH, rake_chamfer=RAKE_CHAMFER, chamfer=CHAMFER, chamfer_shape=CHAMFER_SHAPE, with_rake=true, details=true) {
union() {
chamfer(size=(details)?chamfer:0, child_h=height, child_bot=-height/2, shape=chamfer_shape) union() {

View file

@ -17,7 +17,7 @@ difference() {
translate([-j*20, 0, 0])
rotate(90, [0, 1, 0])
/*chamfer(size=1, child_h=1, child_bot=-0.5, shape=CHAMFER_SHAPE)*/
catear(
catear_v1(
debug=DEBUG,
height=INSERTICLE_Z*1.2,
thickness=THICKNESS,