Skip to content

Commit 1e32993

Browse files
committed
Fixed sparse_voxel_grid test
1 parent 3b77951 commit 1e32993

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_basic.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,8 +2247,13 @@ def sphere1(point):
22472247
return np.sqrt(point[0]**2 + point[1]**2 + point[2]**2) - 1.0
22482248
point = np.array([1.0, 0.0, 0.0])
22492249
cs, cv, ci = igl.sparse_voxel_grid(point, sphere1, 1.0, 100)
2250-
#print(cs, cv, ci)
2251-
2250+
self.assertTrue(cv.flags.c_contiguous)
2251+
self.assertTrue(cv.dtype == np.float)
2252+
self.assertTrue(cv.shape == (len(cs), 3))
2253+
self.assertTrue(ci.flags.c_contiguous)
2254+
self.assertTrue(ci.dtype == np.int)
2255+
self.assertTrue(ci.shape[1] == 8)
2256+
22522257
def test_topological_hole_fill(self):
22532258
f = self.f1
22542259
b = np.array(range(10))

0 commit comments

Comments
 (0)