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

Function parse_args

scripts/boolean.py:7–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import pymesh
6
7def parse_args():
8 parser = argparse.ArgumentParser(description="Boolean operation");
9 parser.add_argument("--exact", default=None, help="Exact output file");
10 parser.add_argument("--timing", action="store_true", help="Report timing");
11 parser.add_argument("--engine",
12 choices=("cork", "clipper", "igl", "cgal", "corefinement", "carve",
13 "quick_csg", "bsp"),
14 default="igl");
15 parser.add_argument("operation", default="intersection",
16 choices=("intersection", "union", "difference",
17 "symmetric_difference"));
18 parser.add_argument("input_mesh_1", help="first input mesh");
19 parser.add_argument("input_mesh_2", help="second input mesh");
20 parser.add_argument("output_mesh", help="output mesh");
21 args = parser.parse_args();
22 return args;
23
24def main():
25 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected