()
| 21 | return parser.parse_args(); |
| 22 | |
| 23 | def main(): |
| 24 | args = parse_args(); |
| 25 | |
| 26 | wire_network = pymesh.wires.WireNetwork.create_from_file(args.wire_file); |
| 27 | inflator = pymesh.wires.Inflator(wire_network); |
| 28 | inflator.set_refinement( |
| 29 | order = args.refinement_order, |
| 30 | method = args.refinement_method); |
| 31 | inflator.inflate(args.thickness, allow_self_intersection=True); |
| 32 | |
| 33 | mesh = inflator.mesh; |
| 34 | pymesh.save_mesh(args.mesh_file, mesh, *mesh.get_attribute_names()); |
| 35 | |
| 36 | if __name__ == "__main__": |
| 37 | main(); |
no test coverage detected