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

Method test_pslg

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

Source from the content-addressed store, hash-verified

24 self.assertEqual(2, len(tri.faces))
25
26 def test_pslg(self):
27 tri = triangle()
28 tri.points = np.array([
29 [0.0, 0.0],
30 [1.0, 0.0],
31 [1.0, 1.0],
32 [0.0, 1.0] ])
33 tri.segments = np.array([
34 [0, 2],
35 [1, 3] ])
36 tri.verbosity = 0
37 tri.split_boundary = False
38 tri.max_num_steiner_points = 0
39 tri.keep_convex_hull = True
40 tri.run()
41
42 self.assertEqual(5, len(tri.vertices))
43 self.assertEqual(4, len(tri.faces))
44
45 def test_convex_hull(self):
46 tri = triangle()

Callers

nothing calls this directly

Calls 2

triangleClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected