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

Function parse_args

scripts/resolve_self_intersection.py:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12import os.path
13
14def 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
26def main():
27 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected