| 26 | json.dump(info, fout, indent=4); |
| 27 | |
| 28 | def parse_args(): |
| 29 | parser = argparse.ArgumentParser(description=__doc__); |
| 30 | parser.add_argument("--engine", |
| 31 | choices=["igl", "bsp", "carve", "cgal", "cork", "corefinement", |
| 32 | "quick_csg"], |
| 33 | default="igl", help="Boolean engine to use"); |
| 34 | parser.add_argument("--timing", "-t", |
| 35 | action="store_true", help="Report timing info"); |
| 36 | parser.add_argument("--exact", "-e", |
| 37 | action="store_true", help="Store output in exact format"); |
| 38 | parser.add_argument("input_mesh", help="Input mesh"); |
| 39 | parser.add_argument("output_mesh", help="Output mesh"); |
| 40 | return parser.parse_args(); |
| 41 | |
| 42 | def main(): |
| 43 | args = parse_args(); |