From 7bec87b3604f3e1fa89725c4d6bc498d74791470 Mon Sep 17 00:00:00 2001 From: Eric Wolf Date: Fri, 29 Sep 2023 13:15:57 +0200 Subject: [PATCH] Fix typo in pts index A constant value of 14 is wrong most of the time. --- vnf.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnf.scad b/vnf.scad index 121f5d8..e377e11 100644 --- a/vnf.scad +++ b/vnf.scad @@ -180,7 +180,7 @@ function vnf_vertex_array( [[i1,i4,i2],[i2,i4,i3]] : style=="min_area"? let( - area42 = norm(cross(pts[i2]-pts[i1], pts[14]-pts[i1]))+norm(cross(pts[i4]-pts[i3], pts[i2]-pts[i3])), + area42 = norm(cross(pts[i2]-pts[i1], pts[i4]-pts[i1]))+norm(cross(pts[i4]-pts[i3], pts[i2]-pts[i3])), area13 = norm(cross(pts[i1]-pts[i4], pts[i3]-pts[i4]))+norm(cross(pts[i3]-pts[i2], pts[i1]-pts[i2])), minarea_edge = area42 < area13 + EPSILON ? [[i1,i4,i2],[i2,i4,i3]]