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

Function parse_args

scripts/submesh.py:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import pymesh
9
10def parse_args():
11 parser = argparse.ArgumentParser(description=__doc__);
12 parser.add_argument("--n-ring", "-n", type=int, default=0,
13 help="Expand the selection by n-rings");
14 parser.add_argument("input_mesh", help="input mesh");
15 parser.add_argument("output_mesh", help="output mesh");
16 parser.add_argument("face_indices", nargs="+",
17 type=int, help="indices of faces to be extracted");
18 return parser.parse_args();
19
20def main():
21 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected