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

Function parse_args

scripts/inflate.py:11–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import pymesh.wires
10
11def parse_args():
12 parser = argparse.ArgumentParser(description=__doc__);
13 parser.add_argument("--thickness", "-t", type=float, help="wire thickness",
14 required=True);
15 parser.add_argument("--refinement-order", "-r", type=int, default=1,
16 help="refinement order");
17 parser.add_argument("--refinement-method", "-m", choices=("simple", "loop"),
18 default="simple", help="refinement method");
19 parser.add_argument("wire_file", help="input wire file");
20 parser.add_argument("mesh_file", help="output mesh file");
21 return parser.parse_args();
22
23def main():
24 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected