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

Function load_info

scripts/meshstat.py:299–309  ·  view source on GitHub ↗
(mesh_file)

Source from the content-addressed store, hash-verified

297 num_coplanar_intersecting_faces, 0);
298
299def load_info(mesh_file):
300 basename, ext = os.path.splitext(mesh_file);
301 info_file = basename + ".info";
302 info = {};
303 if os.path.exists(info_file):
304 with open(info_file, 'r') as fin:
305 try:
306 info = json.load(fin);
307 except ValueError:
308 print_red("Cannot parse {}, overwriting it".format(info_file));
309 return info;
310
311def dump_info(mesh_file, info):
312 basename, ext = os.path.splitext(mesh_file);

Callers 2

mainFunction · 0.90
mainFunction · 0.85

Calls 2

print_redFunction · 0.90
loadMethod · 0.80

Tested by

no test coverage detected