(mesh_file)
| 297 | num_coplanar_intersecting_faces, 0); |
| 298 | |
| 299 | def 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 | |
| 311 | def dump_info(mesh_file, info): |
| 312 | basename, ext = os.path.splitext(mesh_file); |