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

Function drop_zero_dim

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

Source from the content-addressed store, hash-verified

40 return logging.getLogger("PyMesh.Triangulation");
41
42def drop_zero_dim(wires):
43 # Trim zero dimension.
44 if wires.dim == 3:
45 vertices = wires.vertices;
46 assert(np.all(vertices[:,2] == 0));
47 vertices = vertices[:, [0,1]];
48 wires.load(vertices, wires.edges);
49 return wires;
50
51def drop_frame(wires):
52 vertices = wires.vertices[4:,];

Callers 1

mainFunction · 0.70

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected