| 5 | import pymesh |
| 6 | |
| 7 | def parse_args(): |
| 8 | parser = argparse.ArgumentParser(description="Boolean operation"); |
| 9 | parser.add_argument("--exact", default=None, help="Exact output file"); |
| 10 | parser.add_argument("--timing", action="store_true", help="Report timing"); |
| 11 | parser.add_argument("--engine", |
| 12 | choices=("cork", "clipper", "igl", "cgal", "corefinement", "carve", |
| 13 | "quick_csg", "bsp"), |
| 14 | default="igl"); |
| 15 | parser.add_argument("operation", default="intersection", |
| 16 | choices=("intersection", "union", "difference", |
| 17 | "symmetric_difference")); |
| 18 | parser.add_argument("input_mesh_1", help="first input mesh"); |
| 19 | parser.add_argument("input_mesh_2", help="second input mesh"); |
| 20 | parser.add_argument("output_mesh", help="output mesh"); |
| 21 | args = parser.parse_args(); |
| 22 | return args; |
| 23 | |
| 24 | def main(): |
| 25 | args = parse_args(); |