[WIP] add polyhedron-based catears

This commit is contained in:
djerun 2025-06-27 09:00:23 +02:00
commit 58fe834489
3 changed files with 187 additions and 96 deletions

View file

@ -50,9 +50,21 @@ g = function (p) [scalc(xremap, p.x, -S/2, S/2), scalc(yremap, p.y, 0, S/2)*e, p
rotate([0, 90, 0]) color("yellow") arc(0.5, r, THICKNESS, HEIGHT, outer_remap=f, inner_remap=g);
color("red") catear_v2(HEIGHT, THICKNESS, side_len=SIZE/2*EAR_SCALE, stretch_factor=EAR_STRETCH_FACTOR);
color("red") catear_v2(
height=HEIGHT,
thickness=THICKNESS,
side_len=SIZE/2*EAR_SCALE,
stretch_factor=EAR_STRETCH_FACTOR
);
// a = b + c
// x * a = y * b + c
// y / x = a /(b + c)
// y = x * a /(b + c)
// y * b = x * a - c
// y =(x * a - c)/ b
// 100 = 95 + 5
// x * 100 = y * 95 + 5
// 5 * 100 = y * 95 + 5
// 500 = y * 95 + 5
// 495 = y * 95
// y = 495 / 95