(self)
| 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) |