corrected test that 3D mesh is really 2D with z=0
@@ -8,7 +8,7 @@ def write(filename, mesh):
if mesh.points.shape[1] == 3:
assert (
- numpy.all(mesh.points[:, 2]) < 1.0e-14
+ numpy.allclose(mesh.points[:, 2], 0.0, rtol=0.0, atol=1.0e-14)
), "SVG can only handle flat 2D meshes (shape: {})".format(
mesh.points.shape
)
