()
| 16 | return parser.parse_args(); |
| 17 | |
| 18 | def main(): |
| 19 | args = parse_args(); |
| 20 | mesh = pymesh.load_mesh(args.input_mesh); |
| 21 | out_mesh, info = pymesh.split_long_edges(mesh, args.max_edge_length); |
| 22 | |
| 23 | if mesh.has_attribute("corner_texture"): |
| 24 | pymesh.map_corner_attribute(mesh, out_mesh, "corner_texture"); |
| 25 | |
| 26 | pymesh.save_mesh(args.output_mesh, out_mesh, *out_mesh.attribute_names); |
| 27 | |
| 28 | if __name__ == "__main__": |
| 29 | main(); |
no test coverage detected