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:
parent
8ac1d37b10
commit
1719952f49
2 changed files with 56 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue