Skip to content

Commit 77c3fab

Browse files
CopilotLicini
andcommitted
Address code review feedback - simplify sphere volume calculation
Co-authored-by: Licini <17893605+Licini@users.noreply.github.com>
1 parent 3895ec1 commit 77c3fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compas/datastructures/test_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def test_volume():
10951095
sphere_mesh = Mesh.from_shape(Sphere(radius=1.0), u=32, v=32)
10961096
volume = sphere_mesh.volume()
10971097
assert volume is not None
1098-
expected_sphere_volume = (4.0 / 3.0) * math.pi * (1.0**3)
1098+
expected_sphere_volume = (4.0 / 3.0) * math.pi
10991099
# Allow for ~1% error due to discretization
11001100
assert TOL.is_close(volume, expected_sphere_volume, rtol=0.02)
11011101

0 commit comments

Comments
 (0)