In this gist I read a drc file and I want to write the xyz coordinates of the vertices of the first face. The output looks correct for a 2-manifold mesh encoded as .drc file, but the output is wrong for a non-manifold mesh (I produced it with the encoder that converts a ply to a drc file, giving it three triangles that share an edge).
For the two .drc files in drcFiles.zip the output is:
afabri@malevich /cygdrive/c/cgal/git/BGL/test/BGL
$ ./VC2017/draco.exe data/nonmanifold.drc
6.10352e-05 1.00006 0
6.10352e-05 0 0
6.10352e-05 0 1.00006
afabri@malevich /cygdrive/c/cgal/git/BGL/test/BGL
$ ./VC2017/draco.exe data/opentet.drc
0 0 0
0 0 1
0 1 0
I would be glad if anybody could point out what I am doing wrong.
In this gist I read a drc file and I want to write the xyz coordinates of the vertices of the first face. The output looks correct for a 2-manifold mesh encoded as .drc file, but the output is wrong for a non-manifold mesh (I produced it with the encoder that converts a ply to a drc file, giving it three triangles that share an edge).
For the two .drc files in drcFiles.zip the output is:
I would be glad if anybody could point out what I am doing wrong.