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

Method get_star_2D

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

Source from the content-addressed store, hash-verified

91 return WireNetwork.create_from_data(vertices, edges)
92
93 def get_star_2D(self):
94 vertices = np.array([
95 [0, 0],
96 [1, 0],
97 [1, 1],
98 [0, 1],
99 [0.5, 0.5]
100 ], dtype=float)
101 edges = np.array([
102 [0, 4],
103 [1, 4],
104 [2, 4],
105 [3, 4],
106 ])
107 return WireNetwork.create_from_data(vertices, edges)
108
109 def get_cross_3D(self):
110 vertices = np.array([

Callers 2

test_total_lengthMethod · 0.80
test_2D_wireMethod · 0.80

Calls 1

create_from_dataMethod · 0.80

Tested by

no test coverage detected