()
| 12 | import csv |
| 13 | |
| 14 | def 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 | |
| 24 | def compute_distortion_energies_3D(mesh): |
| 25 | if mesh.num_voxels > 0 and mesh.vertex_per_voxel != 4: |