fix tests

This commit is contained in:
Adrian Mariano
2021-11-12 06:18:14 -05:00
parent bc431016fc
commit f605bafb0d
4 changed files with 13 additions and 10 deletions

View File

@@ -842,7 +842,7 @@ module test_centroid() {
// VNFs
assert_approx(centroid(cube(100, center=false)), [50,50,50]);
assert_approx(centroid(cube(100, center=true)), [0,0,0]);
assert_approx(centroid(cube(100, anchor=ALLPOS)), [-50,-50,-50]);
assert_approx(centroid(cube(100, anchor=[1,1,1])), [-50,-50,-50]);
assert_approx(centroid(cube(100, anchor=BOT)), [0,0,50]);
assert_approx(centroid(cube(100, anchor=TOP)), [0,0,-50]);
assert_approx(centroid(sphere(d=100, anchor=CENTER, $fn=36)), [0,0,0]);