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

Function parse_args

scripts/dodecahedron_gen.py:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12from pymesh import save_mesh
13
14def parse_args():
15 parser = argparse.ArgumentParser(description=__doc__);
16 parser.add_argument("--radius", "-r",
17 type=float, default=1.0, help="sphere radius");
18 parser.add_argument("--center", "-c",
19 type=float, nargs=3, default=[0, 0, 0],
20 help="sphere center");
21 parser.add_argument("output_mesh", help="output mesh");
22 return parser.parse_args();
23
24def main():
25 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected