Menu

#47 vcg::tri::io error?

v1.0_(example)
open
nobody
1
2015-12-19
2015-04-27
Anonymous
No

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

Discussion

  • Anonymous

    Anonymous - 2015-04-27

    i saw the doc, there have no namespace like vcg::tri::io.what should i to do?

     
  • Anonymous

    Anonymous - 2015-12-19

    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.

     

Anonymous
Anonymous

Add attachments
Cancel