Compare commits

..

3 commits

Author SHA1 Message Date
djerun
4c0d0ee417 foxear_headband: upgrade to ear version 3 2025-06-28 01:12:41 +02:00
djerun
840544a3d2 bunnyear_headband: upgrade to ear version 3 2025-06-28 01:12:04 +02:00
djerun
fdfdfd0d8d [WIP] 2025-06-28 01:09:28 +02:00
3 changed files with 14 additions and 10 deletions

View file

@ -1,7 +1,7 @@
use <catear_headband.scad> use <catear_headband.scad>
include <headband.scad> include <headband.scad>
module bunnyear_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=0.5, ear_bend_factor=0.2, ear_stretch_factor=8, ear_angle=30) { module bunnyear_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=0.5, ear_bend_factor=1.2, ear_stretch_factor=8, ear_angle=30, ear_version=3, ear_skew=1.2) {
catear_headband( catear_headband(
debug=debug, debug=debug,
size=size, size=size,
@ -14,7 +14,9 @@ module bunnyear_headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKN
ear_scale=ear_scale, ear_scale=ear_scale,
ear_bend_factor=ear_bend_factor, ear_bend_factor=ear_bend_factor,
ear_stretch_factor=ear_stretch_factor, ear_stretch_factor=ear_stretch_factor,
ear_angle=ear_angle); ear_angle=ear_angle,
ear_version=ear_version,
ear_skew=ear_skew);
} }
bunnyear_headband(); rotate(-90) bunnyear_headband();

View file

@ -11,7 +11,7 @@ module catear_v3(height, thickness, fractal=0, side_len=30, bend_factor=0.15, st
S = side_len; S = side_len;
s = S/2; s = S/2;
sf = stretch_factor; sf = stretch_factor;
bf = bend_factor; bf = bend_factor*2;
mn = 1.16; // magic number mn = 1.16; // magic number
f=skew*S*0.2; f=skew*S*0.2;
@ -27,10 +27,10 @@ module catear_v3(height, thickness, fractal=0, side_len=30, bend_factor=0.15, st
curve_vertices = bezier_curve_vertices([A, B, C, D], $fn); curve_vertices = bezier_curve_vertices([A, B, C, D], $fn);
if (debug) { if (debug) {
translate([0, 0, height]) rotate(90) bezier_curve_debug([A, B, C, D]); translate([0, 0, 2*height]) rotate(90) bezier_curve_debug([A, B, C, D]);
echo("curve_vertices: ", curve_vertices); echo("curve_vertices: ", curve_vertices);
} }
rotate(90) render_curve(curve_vertices, width=thickness, height=height, chamfer=chamfer); rotate(90) render_curve(curve_vertices, width=thickness, height=height, chamfer=chamfer, debug=debug);
} }
/** /**
@ -241,4 +241,4 @@ module catear_headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNES
}; };
} }
rotate(-90) catear_headband(ear_bend_factor=0.15, ear_skew=2, ear_version=3); rotate(-90) catear_headband();

View file

@ -1,7 +1,7 @@
use <catear_headband.scad> use <catear_headband.scad>
include <headband.scad> include <headband.scad>
module foxear_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.2, ear_bend_factor=0.05, ear_stretch_factor=1.2, ear_angle=30) { module foxear_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.2, ear_bend_factor=0.0, ear_stretch_factor=1.2, ear_angle=30, ear_version=3, ear_skew=1.0) {
catear_headband( catear_headband(
debug=debug, debug=debug,
size=size, size=size,
@ -14,7 +14,9 @@ module foxear_headband(debug=DEBUG, size=SIZE, height=HEIGHT, thickness=THICKNES
ear_scale=ear_scale, ear_scale=ear_scale,
ear_bend_factor=ear_bend_factor, ear_bend_factor=ear_bend_factor,
ear_stretch_factor=ear_stretch_factor, ear_stretch_factor=ear_stretch_factor,
ear_angle=ear_angle); ear_angle=ear_angle,
ear_version=ear_version,
ear_skew=ear_skew);
} }
foxear_headband(); rotate(-90) foxear_headband(debug=true);