Speed improvement for vnf_vertex_array by changing deduplicate

testing.  Add "min_edge" style to vnf vertex array.
eliminate _skin_core, replace with vnf_vertex_array, add style option
to all modules/functions.
fix bug in path_normals (not normalized)
This commit is contained in:
Adrian Mariano
2021-04-13 19:27:42 -04:00
parent dea5949df8
commit 4a179920cf
3 changed files with 64 additions and 94 deletions

View File

@@ -380,7 +380,7 @@ function path_normals(path, tangents, closed=false) =
dim == 2 ? [tangents[i].y,-tangents[i].x]
: let(v=cross(cross(pts[1]-pts[0], pts[2]-pts[0]),tangents[i]))
assert(norm(v)>EPSILON, "3D path contains collinear points")
v
unit(v)
];