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

Method test_convex_hull

python/pymesh/tests/test_triangle.py:45–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.assertEqual(4, len(tri.faces))
44
45 def test_convex_hull(self):
46 tri = triangle()
47 tri.points = np.array([
48 [0.0, 0.0],
49 [1.0, 0.0],
50 [0.1, 0.1],
51 [0.0, 1.0] ])
52 tri.keep_convex_hull = True
53 tri.verbosity = 0
54 tri.max_num_steiner_points = 0
55 tri.run()
56
57 self.assertEqual(4, len(tri.vertices))
58 self.assertEqual(3, len(tri.faces))
59
60 def test_holes(self):
61 tri = triangle()

Callers

nothing calls this directly

Calls 2

triangleClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected