when i try to build the <basic concepts=""> example. the code like:
if(vcg::tri::io::ImporterOFF<mymesh>::Open(m,argv[1])!=vcg::tri::io::ImporterOFF<mymesh>::NoError)</mymesh></mymesh></basic>
vcg::tri::UpdateNormal<mymesh>::PerVertexNormalized(m);</mymesh>
there have some error:
error: 'vcg::tri::io' has not been declared
error: '::Open' has not been declared
error: '::NoError' has not been declared
error: '::PerVertexNormalized' has not been declared
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
i saw the doc, there have no namespace like vcg::tri::io.what should i to do?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi, I just had that problem.
The official example needs to be updated. ^^
I had solved that by including some header files.
// io
include <wrap io_trimesh="" import.h="">
include <wrap io_trimesh="" export_ply.h="">
include <wrap io_trimesh="" export_stl.h="">
...</wrap></wrap></wrap>
To use any Importer, you need to include import.h.
And also, proper export_xxx.h for your exporting.