added modifier to partial extrusion to slightly change rake, slight changes to cat/dogears

This commit is contained in:
tessaK9 2026-03-13 13:14:25 +01:00
commit 8296c5e867
4 changed files with 26 additions and 25 deletions

View file

@ -3,26 +3,26 @@ use <bezier_extrusion.scad>;
module headband(thickness, height){
rake_length = 3;
shape_band = [[thickness/2,height/2-0.5],
[thickness/2,-height/2+0.5],
[thickness/2-0.5,-height/2],
[-thickness/2+0.5,-height/2],
[-thickness/2,-height/2+0.5],
[-thickness/2,height/2-0.5],
[-thickness/2+0.5,height/2],
[thickness/2-0.5,height/2]];
shape_band = [[thickness/2,height/2-0.25],
[thickness/2,-height/2+0.25],
[thickness/2-0.25,-height/2],
[-thickness/2+0.25,-height/2],
[-thickness/2,-height/2+0.25],
[-thickness/2,height/2-0.25],
[-thickness/2+0.25,height/2],
[thickness/2-0.25,height/2]];
shape_rake = [[0,-height/2],
[0,height/2],
[rake_length,height/2-2],
[rake_length,-height/2+2]];
shape_halfband = [[thickness/2,height/2-0.5],
[thickness/2,-height/2+0.5],
[thickness/2-0.5,-height/2],
shape_halfband = [[thickness/2,height/2-0.25],
[thickness/2,-height/2+0.25],
[thickness/2-0.25,-height/2],
[0,-height/2],
[0,height/2],
[thickness/2-0.5,height/2]];
[thickness/2-0.25,height/2]];
ctrl_band = [[21,0],[77,56],[56,126],[0,126]];
ctrl_end = [[21,0],[20,-1],[18,-4],[17,-8]];
@ -39,7 +39,7 @@ module headband(thickness, height){
translate([-17,-8]){
rotate_extrude(convexity = 10, $fn = 16) polygon(shape_halfband);
}
bezier_extrude_partial(ctrl = ctrl_rake, shape = shape_rake, gap = 2, sections = 3*64+1);
bezier_extrude_partial(ctrl = ctrl_rake, shape = shape_rake, merlon = 2, gap = 3, sections = 5*42+1 );
}
}