[WIP] align chamfer

This commit is contained in:
djerun 2025-06-28 01:41:42 +02:00
commit da1d122947
3 changed files with 5 additions and 4 deletions

View file

@ -37,7 +37,8 @@ module bezier_curve_debug(control_points, $fn=$fn) {
// c^2=2a^2 // /2
// c^2/2=a^2 // sqrt
// sqrt(c^2/2)=a
chamfer_offset = function (c) sqrt((c*c)/2);
//chamfer_offset = function (c) sqrt((c*c)/2);
chamfer_offset = function (c) c/2;
rendered_curve_segment_vertices = function (p, v, n, width, height, chamfer)
let (d=normalize(n-p)) let (up=[0, 0, 1]) let (right=normalize(cross(d, up))) [