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

Function drop_zero_dim

scripts/svg_to_mesh.py:49–56  ·  view source on GitHub ↗
(wires)

Source from the content-addressed store, hash-verified

47 return logging.getLogger("PyMesh.Triangulation");
48
49def drop_zero_dim(wires):
50 # Trim zero dimension.
51 if wires.dim == 3:
52 vertices = wires.vertices;
53 assert(np.all(vertices[:,2] == 0));
54 vertices = vertices[:, [0,1]];
55 wires.load(vertices, wires.edges);
56 return wires;
57
58def cleanup(wires, logger):
59 if wires.num_vertices == 0:

Callers 1

mainFunction · 0.70

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected