MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / test_cut_sphere

Method test_cut_sphere

python/pymesh/tests/test_cut_to_disk.py:9–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class DiskCutterTest(TestCase):
9 def test_cut_sphere(self):
10 mesh = generate_icosphere(1.0, np.zeros(3))
11 self.assertEqual(2, mesh.euler_characteristic)
12 mesh = cut_to_disk(mesh)
13 num_bd_loops = mesh.num_boundary_loops
14 self.assertEqual(0, num_bd_loops)
15 self.assertEqual(2-num_bd_loops, mesh.euler_characteristic)
16
17 def test_cut_tube(self):
18 mesh = generate_tube(np.zeros(3), np.ones(3), 1.0, 0.5, 1.0, 0.5)

Callers

nothing calls this directly

Calls 2

generate_icosphereFunction · 0.90
cut_to_diskFunction · 0.90

Tested by

no test coverage detected