From bd5fd65e3d4545f4938a6d076c7e0b1a4ebf78c4 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sat, 27 Jan 2024 09:46:08 -0500 Subject: [PATCH] remove noncoplanar polygon fron vnf_from_polygon test --- tests/test_vnf.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_vnf.scad b/tests/test_vnf.scad index a344e6a..9da479f 100644 --- a/tests/test_vnf.scad +++ b/tests/test_vnf.scad @@ -36,9 +36,9 @@ test_vnf_faces(); module test_vnf_from_polygons() { verts = [[-1,-1,-1],[1,-1,-1],[0,1,-1],[0,0,1]]; - faces = [[0,1,2],[0,1,3,2],[2,3,0]]; + faces = [[0,1,2],[0,3,1],[2,3,0],[0,1,0]]; // Last face has zero area assert(vnf_merge_points( - vnf_from_polygons([for (face=faces) select(verts,face)])) == [verts,faces]); + vnf_from_polygons([for (face=faces) select(verts,face)])) == [verts,select(faces,0,-2)]); } test_vnf_from_polygons();