1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00
dotSCAD/test/test_polygon_hull.scad
2022-06-06 13:11:46 +08:00

19 lines
325 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();