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

Function parse_args

scripts/self_union.py:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 json.dump(info, fout, indent=4);
27
28def parse_args():
29 parser = argparse.ArgumentParser(description=__doc__);
30 parser.add_argument("--engine",
31 choices=["igl", "bsp", "carve", "cgal", "cork", "corefinement",
32 "quick_csg"],
33 default="igl", help="Boolean engine to use");
34 parser.add_argument("--timing", "-t",
35 action="store_true", help="Report timing info");
36 parser.add_argument("--exact", "-e",
37 action="store_true", help="Store output in exact format");
38 parser.add_argument("input_mesh", help="Input mesh");
39 parser.add_argument("output_mesh", help="Output mesh");
40 return parser.parse_args();
41
42def main():
43 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected