diff --git a/vnf.scad b/vnf.scad index 907b533a..0817f407 100644 --- a/vnf.scad +++ b/vnf.scad @@ -330,7 +330,7 @@ function vnf_vertex_array( texture, tex_reps, tex_size, tex_samples, tex_inset=false, tex_rot=0, tex_scaling="default", tex_depth=1, tex_extra, tex_skip, sidecaps,sidecap1,sidecap2, normals ) = - assert(in_list(style,["default","alt","quincunx", "convex","concave", "min_edge","min_area","flip1","flip2","diagnormals"])) + assert(in_list(style,["default","alt","quincunx", "convex","concave", "min_edge","min_area","flip1","flip2"])) assert(is_matrix(points[0], n=3),"\nPoint array has the wrong shape or points are not 3d.") assert(is_consistent(points), "\nNon-rectangular or invalid point array.") assert(is_bool(triangulate)) @@ -366,7 +366,6 @@ function vnf_vertex_array( ) mean([pts[i1], pts[i2], pts[i3], pts[i4]]) ], - surfnorms = style=="diagnormals" ? surface_normals(points, row_wrap=row_wrap, col_wrap=col_wrap) : [], allfaces = [ if (cap1) count(cols,reverse=!reverse), if (cap2) count(cols,(rows-1)*cols, reverse=reverse), @@ -421,16 +420,6 @@ function vnf_vertex_array( : [[i1,i3,i2],[i1,i4,i3]] ) concavefaces - : style=="diagnormals"? - let( - ang13 = vector_angle(surfnorms[r][c],surfnorms[(r+1)%rows][(c+1)%cols]), - ang24 = vector_angle(surfnorms[(r+1)%rows][c],surfnorms[r][(c+1)%cols]), - smallang = ang24