()
| 17 | return parser.parse_args(); |
| 18 | |
| 19 | def 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 | |
| 29 | if __name__ == "__main__": |
| 30 | main(); |
no test coverage detected