1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/test/test_polygon_hull.scad
2022-04-09 19:21:51 +08:00

19 lines
326 B
OpenSCAD

include <polygon_hull.scad>;
module test_polygon_hull() {
echo("==== test_polygon_hull ====");
polygon_hull([
[1, 1],
[1, 0],
[0, 1],
[-2, 1],
[-1, -1]
]);
}
module test_convex_hull2(poly) {
assert(poly == [[-2, 1], [-1, -1], [1, 0], [1, 1]]);
}
test_polygon_hull();