()
| 54 | return parser.parse_args(); |
| 55 | |
| 56 | def main(): |
| 57 | args = parse_args(); |
| 58 | mesh = pymesh.load_mesh(args.input_mesh); |
| 59 | if (mesh.num_voxels <= 0): |
| 60 | raise RuntimeError("Input mesh contains 0 voxels."); |
| 61 | if (mesh.vertex_per_voxel != 4): |
| 62 | raise RuntimeError("Input mesh is not a tet mesh."); |
| 63 | mesh = tet_to_hex(mesh); |
| 64 | pymesh.save_mesh(args.output_mesh, mesh); |
| 65 | |
| 66 | if __name__ == "__main__": |
| 67 | main(); |
no test coverage detected