-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saveOBJFile(... PolygonMesh ...) writes faces without spaces #393
Comments
HI @sidch, thanks for the bug report. As you found the fix already, can you send a pull request with it? That would make it easier for us to integrate it and give you the credits as well ;). If you need help with sending pull requests, don't hesitated to ask. |
@jspricke will fix this |
nizar-sallem
added a commit
to nizar-sallem/pcl
that referenced
this issue
Dec 11, 2013
Sorry for responding late to this, and thanks for the fix! I'll send a pull request next time :). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The function
int saveOBJFile (const std::string &file_name, const pcl::PolygonMesh &mesh, unsigned precision=5)
in file io/src/obj_io.cpp writes the indices of each face without separating spaces when the face vertices have associated normals. The bug is in line 369:
fs << mesh.polygons[i].vertices[j] + 1 << "//" << mesh.polygons[i].vertices[j] + 1;
The fix is easy: output an extra " " after mesh.polygons[i].vertices[j] + 1.
The text was updated successfully, but these errors were encountered: