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

Method test_trim

python/pymesh/wires/tests/test_wire_network.py:28–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.assertAlmostEqual(2*sqrt(2), wire_network.total_wire_length)
27
28 def test_trim(self):
29 wire_network = self.get_brick5()
30 wire_network.trim()
31 self.assertEqual(14, wire_network.num_vertices)
32 self.assertEqual(24, wire_network.num_edges)
33
34 def test_2D_wire(self):
35 wire_network = self.get_star_2D()

Callers

nothing calls this directly

Calls 2

get_brick5Method · 0.80
trimMethod · 0.80

Tested by

no test coverage detected