I use g++ and gdb to debug the issue, g++ -std=c++11 -g -I vcglib vcglib/wrap/ply/plylib.cpp trimesh_clustering.cpp -o trimesh_clustering This is just a workaround not the idal way.
0.337305 -4.75996 27.4304 0 192 192 192 255įor now I remove the color attribute of the vertex to make run, this will lost the color info of the mesh. Trimesh_clustering: vcglib/vcg/simplex/vertex/component.h:75: vcg::vertex::Empt圜ore::ColorType& vcg::vertex::Empt圜ore::C() : Assertion `0' failed.įorm the issue, I guess it may caused by the Color in the ply file, So I use ply file without color like this, ply With cells size of 0.48 x 0.49 x 0.48 units I run the sample trimesh_clustering to simplify a plf file format 3D model with this.