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

Function parse_args

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

Source from the content-addressed store, hash-verified

12import csv
13
14def parse_args():
15 parser = argparse.ArgumentParser(__doc__);
16 parser.add_argument("--log", type=str, help="logging level",
17 choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"],
18 default="WARNING");
19 parser.add_argument("--csv", type=str, help="output csv_file");
20 parser.add_argument("input_mesh");
21 parser.add_argument("output_mesh");
22 return parser.parse_args();
23
24def compute_distortion_energies_3D(mesh):
25 if mesh.num_voxels > 0 and mesh.vertex_per_voxel != 4:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected