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

Function parse_args

scripts/slice_mesh.py:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import os.path
11
12def parse_args():
13 parser = argparse.ArgumentParser(description=__doc__);
14 parser.add_argument("-N", type=int, required=True, help="number of slices");
15 parser.add_argument("--axis", nargs=3, type=float, default=[0.0, 0.0, 1.0],
16 help="slicing direction");
17 parser.add_argument("input_mesh");
18 parser.add_argument("output_slices");
19 return parser.parse_args();
20
21def main():
22 args = parse_args();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected