| 12 | import os.path |
| 13 | |
| 14 | def parse_args(): |
| 15 | parser = argparse.ArgumentParser(description=__doc__); |
| 16 | parser.add_argument("--max-iterations", type=int, default=1, |
| 17 | help="Max number of times of calling resolve function."); |
| 18 | parser.add_argument("--with-rounding", action="store_true", |
| 19 | help="Agressive rounding to avoid self-intersection"); |
| 20 | parser.add_argument("--precision", type=int, default=12, |
| 21 | help="Number of decimal digits to round to"); |
| 22 | parser.add_argument("in_mesh", help="input mesh"); |
| 23 | parser.add_argument("out_mesh", help="output mesh"); |
| 24 | return parser.parse_args(); |
| 25 | |
| 26 | def main(): |
| 27 | args = parse_args(); |