Fix for issue #876: cuboid() rounding min size checking.

This commit is contained in:
Garth Minette
2022-05-25 00:59:37 -07:00
parent d24824e7d3
commit e33337d07c
2 changed files with 97 additions and 27 deletions

View File

@@ -178,7 +178,7 @@ function vnf_vertex_array(
let(
d42=norm(pts[i4]-pts[i2]),
d13=norm(pts[i1]-pts[i3]),
shortedge = d42<=d13 ? [[i1,i4,i2],[i2,i4,i3]]
shortedge = d42<d13+EPSILON ? [[i1,i4,i2],[i2,i4,i3]]
: [[i1,i3,i2],[i1,i4,i3]]
)
shortedge