test_polygon_hull.scad
1 include <polygon_hull.scad> 2 3 module test_polygon_hull() { 4 echo("==== test_polygon_hull ===="); 5 polygon_hull([ 6 [1, 1], 7 [1, 0], 8 [0, 1], 9 [-2, 1], 10 [-1, -1] 11 ]); 12 } 13 14 15 module test_convex_hull2(poly) { 16 assert(poly == [[-2, 1], [-1, -1], [1, 0], [1, 1]]); 17 } 18 19 test_polygon_hull();