Replace .ply reader/writer with tinyply library#1422
Replace .ply reader/writer with tinyply library#1422alecjacobson merged 2 commits intolibigl:masterfrom
Conversation
|
Thanks! Did you also update the |
|
ok, I forgot about that |
4a33eb3 to
dc1a2d3
Compare
|
Thanks. How about |
|
it's supposed to be missing : https://github.com/vfonov/libigl/blob/tinyply_reader_writer/tests/include/igl/readPLY.cpp#L69 |
|
Ahah my bad. I'll take a look at the PR this weekend then, hopefully we can merge it. |
aba726c to
32e8fb1
Compare
|
I made more changes and also updated SHA for test data. |
|
Hmm seems like it's still not building on Travis/AppVeyor... |
32e8fb1 to
518a000
Compare
|
ok, I think I got why there were errors with template instantiation ... or maybe not |
518a000 to
9b37c19
Compare
|
another attempt... |
|
At least it builds with gcc-7, looks like something is wrong with the build setup for macosX though |
5373569 to
d12173c
Compare
|
so, appveyor is timing out now: "Build execution time has reached the maximum allowed time for your plan (60 minutes)." |
|
Yeah the timeout issue on AppVeyor is a known issue. For the build on macOS you should rebase your changes onto our |
d12173c to
8458489
Compare
|
looks like rebasing didn't help |
|
maybe you need to add command to explicitly install ccache, as per https://docs.travis-ci.com/user/caching/#ccache-on-macos ? |
8458489 to
3be9544
Compare
|
No ccache should be available thanks to this line. But honestly I'm not super inclined to debug build issues on Travis, since I'm waiting on #1389 to get merged and we switch to GitHub Actions for CI builds. Most likely I suspect this is not gonna happen till March 20 where we'll have our next libigl hackaton planned. |
|
so, installing ccache with |
b784952 to
1391a68
Compare
|
The current ply reader appears to fail on bun_zipper.ply (only loads two coordinates instead of all three). Could you try this model with this PR and see if it loads correctly? (then I don't have to debug the old reader). http://graphics.stanford.edu/pub/3Dscanrep/bunny.tar.gz |
9a4c09d to
de473ed
Compare
|
the current readPLY seems to fail consistently on these plys https://gfx.cs.princeton.edu/proj/sugcon/models/ Does this PR succeed on those? |
|
I made a small test program : check_ply.cpp check_ply.cpp.txt and tested it on the PLY files from the location. Here is the output. It looks like all these models are using "tristrips" property instead of "faces" , so loader doesn't load faces matrix (it's 0x0): |
|
ok, I managed to treat this case, will push another commit soon |
de473ed to
d61a679
Compare
|
The latest version can read ply files with tristrips instead of faces. |
Updated SHA for libigl-tests-data removed obsolete ply.h updated tinyply to compile with and without LIBIGL_USE_STATIC_LIBRARY fixed template instantiation signatures to work with gcc fixed integer classes for visual studio fixed igl::tynyply_type redefinition added command to install ccache in .travis.yml added test for writePLY changed asserts inside writePLY code fixed some bugs in writePLY code made PLY reader/writer work with quad meshes made PLY reader/writer work with tristrips
d61a679 to
52c6f14
Compare
|
So, is there some concerns about including these changes into the dev branch? |
|
@alecjacobson is probably busy with the SIGGRAPH committee until the end of the week. Once he gives the green light we can merge this. |
























Using tinyply library for reading and writing .ply files:
based on #1235, allows reading and writing additional per-vertex, per-face and per-edge properties, using tinyply version 2.3.2.
[Describe your changes and what you've already done to test it.]
Check all that apply (change to
[x])