MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / parse_args

Function parse_args

scripts/separate.py:16–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14import os.path
15
16def 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
29def main():
30 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected