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

Function parse_args

scripts/add_attribute.py:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import pymesh
9
10def parse_args():
11 parser = argparse.ArgumentParser(
12 description=__doc__);
13 parser.add_argument("--attribute-name", "-n", help="Attribute name");
14 parser.add_argument("input_mesh", help="input mesh");
15 parser.add_argument("output_mesh", help="output mesh");
16 return parser.parse_args();
17
18@pymesh.timethis
19def add_attribute(mesh, name):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected