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

Method test_quad

python/pymesh/tests/test_compression.py:46–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 self.assert_array_almost_equal(mesh.bbox, mesh2.bbox)
45
46 def test_quad(self):
47 vertices = numpy.array([
48 [0.0, 0.0],
49 [1.0, 0.0],
50 [1.0, 1.0],
51 [0.0, 1.0],
52 ])
53 faces = np.array([
54 [0, 1, 2, 3],
55 ])
56 mesh = pymesh.form_mesh(vertices, faces)
57
58 with self.assertRaises(RuntimeError):
59 data = pymesh.compress(mesh)
60
61 def test_empty_mesh(self):
62 vertices = numpy.zeros((0, 3), dtype=float)

Callers

nothing calls this directly

Calls 2

form_meshMethod · 0.45
compressMethod · 0.45

Tested by

no test coverage detected