catear-pedestal v0.1

This commit is contained in:
djerun 2024-06-03 11:51:35 +02:00
commit 74bb13b86a
3 changed files with 56 additions and 5 deletions

View file

@ -1,6 +1,7 @@
include <globals.scad>;
use <headband.scad>;
use <chamfer.scad>;
module catear(height, thickness, fractal=0, side_len=30, bend_factor=0.5, stretch_factor=1.2, debug=false, chamfer=CHAMFER, chamfer_shape=CHAMFER_SHAPE) {
$A=[0, side_len/2];
@ -69,7 +70,7 @@ module catear(height, thickness, fractal=0, side_len=30, bend_factor=0.5, stretc
}
}
module catear_headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNESS, part=PART, stretch_len=STRETCH_LEN, tip_len=TIP_LEN, tip_bend=TIP_BEND, ear_scale=1.5, ear_bend_factor=0.15, ear_stretch_factor=1.2, ear_angle=42, chamfer=CHAMFER, chamfer_shape=CHAMFER_SHAPE) {
module catear_headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNESS, part=PART, stretch_len=STRETCH_LEN, tip_len=TIP_LEN, tip_bend=TIP_BEND, ear_scale=1.5, ear_bend_factor=0.15, ear_stretch_factor=1.2, ear_angle=42, chamfer=CHAMFER, chamfer_shape=CHAMFER_SHAPE, with_rake=true) {
$a=size/2*ear_scale;
$delta=2*(acos($a/(size*2))-90);
@ -107,7 +108,8 @@ module catear_headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNES
part=part,
stretch_len=stretch_len,
tip_len=tip_len,
tip_bend=tip_bend
tip_bend=tip_bend,
with_rake=with_rake
);
};
}