Fixing "opening an obj file causes Slic3r to become stuck and use 100% on one core" #221

Extended the OBJ parser to triangulate quads. Higher order polygons are not supported though.
This commit is contained in:
bubnikv 2017-04-03 10:05:22 +02:00
parent 8ac1d37b10
commit 1719952f49
2 changed files with 56 additions and 11 deletions

View file

@ -346,8 +346,8 @@ bool objparse(const char *path, ObjData &data)
}
::fclose(pFile);
printf("vertices: %d\r\n", data.vertices.size() / 4);
printf("coords: %d\r\n", data.coordinates.size());
// printf("vertices: %d\r\n", data.vertices.size() / 4);
// printf("coords: %d\r\n", data.coordinates.size());
return true;
}