We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3895ec1 commit 77c3fabCopy full SHA for 77c3fab
tests/compas/datastructures/test_mesh.py
@@ -1095,7 +1095,7 @@ def test_volume():
1095
sphere_mesh = Mesh.from_shape(Sphere(radius=1.0), u=32, v=32)
1096
volume = sphere_mesh.volume()
1097
assert volume is not None
1098
- expected_sphere_volume = (4.0 / 3.0) * math.pi * (1.0**3)
+ expected_sphere_volume = (4.0 / 3.0) * math.pi
1099
# Allow for ~1% error due to discretization
1100
assert TOL.is_close(volume, expected_sphere_volume, rtol=0.02)
1101
0 commit comments