I want to use vcglib for reconstructing a surface based on a point cloud. But whenever I run my program (also with the provided examples, e.g. /vcglib/apps/sample/trimesh_allocate) I get the following output:
trimesh_allocate: ../../../vcg/simplex/vertex/component.h:50: int vcg::vertex::EmptyCore::cFlags() const [with TT = MyUsedTypes]: Assertion `0' failed.
Any ideas how to solve this? I am using QT-Creator 2.4.1 on Ubuntu 12.04. I do net get any compiler or linker errors.
Thanks a lot in advance, Mirco
In order to get rid of such an error you typically need to change the definition of the vertex, edge, face, mesh definition. I could get this example to work using:
I believe the
vcg::xx::BitFlags
are the ones that you need to add for both vertex and face. This can be seen from the error you have that is about cFlags().Furthermore in the
trimesh_allocate.cpp
example, you need to comment out the following section: