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

Function split_quad_into_tris

python/pymesh/meshutils/generate_box_mesh.py:130–133  ·  view source on GitHub ↗
(corners)

Source from the content-addressed store, hash-verified

128 return subcell_corners
129
130def split_quad_into_tris(corners):
131 vertices = corners
132 faces = np.array([[0, 1, 2], [0, 2, 3]])
133 return vertices, faces
134
135def split_quad_into_tris_symmetrically(corners):
136 center = np.mean(corners, axis=0)

Callers 1

generate_2D_box_meshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected