| 316 | json.dump(info, fout, indent=4, sort_keys=True); |
| 317 | |
| 318 | def parse_args(): |
| 319 | parser = argparse.ArgumentParser(description=__doc__); |
| 320 | parser.add_argument("--extended", "-x", action="store_true", |
| 321 | help="check for manifold, closedness, connected components and more "); |
| 322 | parser.add_argument("--self-intersection", "-s", action="store_true", |
| 323 | help="check for self-intersection, maybe slow"); |
| 324 | parser.add_argument("--export", "-e", action="store_true", |
| 325 | help="export stats into a .info file"); |
| 326 | parser.add_argument("input_mesh", help="input mesh file"); |
| 327 | return parser.parse_args(); |
| 328 | |
| 329 | def main(): |
| 330 | args = parse_args(); |