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

Function main

scripts/tet_to_hex.py:56–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 return parser.parse_args();
55
56def 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
66if __name__ == "__main__":
67 main();

Callers 1

tet_to_hex.pyFile · 0.70

Calls 5

RuntimeErrorClass · 0.85
tet_to_hexFunction · 0.85
parse_argsFunction · 0.70
load_meshMethod · 0.45
save_meshMethod · 0.45

Tested by

no test coverage detected