diff --git a/wrap/io_trimesh/import_off.h b/wrap/io_trimesh/import_off.h index 61261cb5..143dda63 100644 --- a/wrap/io_trimesh/import_off.h +++ b/wrap/io_trimesh/import_off.h @@ -452,7 +452,7 @@ namespace vcg TokenizeNextLine(stream, tokens); int vert_per_face = atoi(tokens[0].c_str()); - + assert(vert_per_face >=3); k = 1; if (vert_per_face == 3) { @@ -503,7 +503,7 @@ namespace vcg // tag internal polygnal edges as "faux" if (j>0) mesh.face[f+j].SetF(0); if (j