Correction in is_convex_polygon

This commit is contained in:
RonaldoCMP
2021-04-11 23:45:21 +01:00
parent dab6407b0f
commit 41616872fe
2 changed files with 7 additions and 5 deletions

View File

@@ -847,6 +847,7 @@ module test_is_convex_polygon() {
assert(is_convex_polygon(circle(r=50,$fn=1000)));
assert(is_convex_polygon(rot([50,120,30], p=path3d(circle(1,$fn=50)))));
assert(!is_convex_polygon([[1,1],[0,0],[-1,1],[-1,-1],[1,-1]]));
assert(!is_convex_polygon([for (i=[0:36]) let(a=-i*10) (10+i)*[cos(a),sin(a)]])); // spiral
}
*test_is_convex_polygon();