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

Function main

scripts/mesh_to_wire.py:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 return parser.parse_args();
18
19def main():
20 args = parse_args();
21 mesh = pymesh.load_mesh(args.mesh_file);
22 if not args.dual:
23 vertices, edges = pymesh.mesh_to_graph(mesh);
24 else:
25 vertices, edges = pymesh.mesh_to_dual_graph(mesh);
26 wire_network = pymesh.wires.WireNetwork.create_from_data(vertices, edges);
27 wire_network.write_to_file(args.wire_file);
28
29if __name__ == "__main__":
30 main();

Callers 1

mesh_to_wire.pyFile · 0.70

Calls 4

create_from_dataMethod · 0.80
parse_argsFunction · 0.70
load_meshMethod · 0.45
write_to_fileMethod · 0.45

Tested by

no test coverage detected