Convert Shape methods to properties: is_null, is_valid, shape_type

This commit is contained in:
gumyr 2025-05-27 14:38:21 -04:00
parent f445de32c9
commit 560a5369b7
14 changed files with 75 additions and 82 deletions

View file

@ -59,7 +59,7 @@ class TestSolid(unittest.TestCase):
box = Solid(box_shell)
self.assertAlmostEqual(box.area, 6, 5)
self.assertAlmostEqual(box.volume, 1, 5)
self.assertTrue(box.is_valid())
self.assertTrue(box.is_valid)
def test_extrude(self):
v = Edge.extrude(Vertex(1, 1, 1), (0, 0, 1))