| 14 | import os.path |
| 15 | |
| 16 | def parse_args(): |
| 17 | parser = argparse.ArgumentParser(description=__doc__); |
| 18 | parser.add_argument("--force", help="force separation", action="store_true"); |
| 19 | parser.add_argument("--connectivity-type", "-c", |
| 20 | choices=["auto", "vertex", "face", "voxel"], |
| 21 | help="the meaning of connected", default="auto"); |
| 22 | parser.add_argument("--highlight", action="store_true", |
| 23 | help="Highlight disconnected components"); |
| 24 | parser.add_argument("mesh_in", help="input mesh"); |
| 25 | parser.add_argument("mesh_out", help="output mesh"); |
| 26 | args = parser.parse_args(); |
| 27 | return args; |
| 28 | |
| 29 | def main(): |
| 30 | args = parse_args(); |