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

Method get_brick5

python/pymesh/wires/tests/WireTestCase.py:12–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 super(WireTestCase, self).setUp()
11
12 def get_brick5(self):
13 vertices = np.array([
14 -1.000000, -1.000000, 1.000000,
15 -1.000000, -1.000000, -1.000000,
16 1.000000, -1.000000, -1.000000,
17 1.000000, -1.000000, 1.000000,
18 -1.000000, 1.000000, 1.000000,
19 -1.000000, 1.000000, -1.000000,
20 1.000000, 1.000000, -1.000000,
21 1.000000, 1.000000, 1.000000,
22 1.000000, 0.000000, 0.000000,
23 0.000000, -1.000000, 0.000000,
24 -1.000000, 0.000000, 0.000000,
25 0.000000, 0.000000, -1.000000,
26 0.000000, 0.000000, 1.000000,
27 0.000000, 1.000000, 0.000000,
28 1.500000, 0.000000, 0.000000,
29 -1.500000, 0.000000, 0.000000,
30 0.000000, 1.500000, 0.000000,
31 0.000000, -1.500000, 0.000000,
32 0.000000, 0.000000, 1.500000,
33 0.000000, 0.000000, -1.500000,
34 ], dtype=float).reshape((-1, 3))
35 edges = np.array([
36 8, 9,
37 14, 5,
38 2, 10,
39 6, 14,
40 14, 7,
41 12, 2,
42 13, 1,
43 12, 3,
44 7, 12,
45 11, 1,
46 12, 6,
47 10, 4,
48 5, 13,
49 2, 11,
50 10, 1,
51 11, 5,
52 9, 7,
53 6, 11,
54 9, 4,
55 9, 3,
56 13, 8,
57 14, 8,
58 10, 3,
59 13, 4,
60 9, 15,
61 11, 16,
62 14, 17,
63 10, 18,
64 13, 19,
65 12, 20,
66 ], dtype=int).reshape((-1, 2)) - 1
67 return WireNetwork.create_from_data(vertices, edges)
68
69 def get_star_3D(self):

Callers 9

test_creationMethod · 0.80
test_trimMethod · 0.80
test_symmetry_orbitsMethod · 0.80
test_simpleMethod · 0.80
test_tiledMethod · 0.80
test_profileMethod · 0.80
test_tile_with_bboxMethod · 0.80

Calls 1

create_from_dataMethod · 0.80

Tested by

no test coverage detected