Skip some unknown medit keywords generated by mmg software
@@ -277,6 +277,12 @@ def read_ascii_buffer(f):
).reshape(num_edge_on_geometric_edge, 2)
elif items[0] == "Identifier" or items[0] == "Geometry":
f.readline()
+ elif items[0] in ["RequiredVertices", "TangentAtVertices", "Tangents",
+ "Ridges"]:
+ msg = ("Meshio doesn't know keyword {}. Skipping.").format(items[0])
+ logging.warning(msg)
+ num_to_pass = int(f.readline())
+ for i in range(num_to_pass): f.readline()
else:
if items[0] != "End":
raise ReadError(f"Unknown keyword '{items[0]}'.")
