diff --git a/apps/sample/trimesh_base/trimesh_base.cpp b/apps/sample/trimesh_base/trimesh_base.cpp index 4843ec90..ab7bbed4 100644 --- a/apps/sample/trimesh_base/trimesh_base.cpp +++ b/apps/sample/trimesh_base/trimesh_base.cpp @@ -2,7 +2,7 @@ * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * -* Copyright(C) 2004-2009 \/)\/ * +* Copyright(C) 2004-2012 \/)\/ * * Visual Computing Lab /\/| * * ISTI - Italian National Research Council | * * \ * @@ -20,21 +20,10 @@ * for more details. * * * ****************************************************************************/ - -#include -#include - -#include - -#include -#include - -#include #include // input output -#include -#include +#include // topology computation #include @@ -61,13 +50,13 @@ int main( int argc, char **argv ) { if(argc<2) { - printf("Usage trimesh_base \n"); + printf("Usage trimesh_base \n"); return -1; } MyMesh m; - if(tri::io::ImporterPLY::Open(m,argv[1])!=0) + if(tri::io::ImporterOFF::Open(m,argv[1])!=0) { printf("Error reading file %s\n",argv[1]); exit(0); @@ -76,8 +65,8 @@ int main( int argc, char **argv ) tri::UpdateTopology::FaceFace(m); tri::UpdateFlags::FaceBorderFromFF(m); tri::UpdateNormals::PerVertexNormalized(m); - printf("Input mesh vn:%i fn:%i\n",m.vn,m.fn); - printf( "Mesh has %i vert and %i faces\n", m.vn, m.fn ); + printf("Input mesh vn:%i fn:%i\n",m.VN(),m.FN()); + printf( "Mesh has %i vert and %i faces\n", m.VN(), m.FN() ); return 0; } diff --git a/apps/sample/trimesh_base/trimesh_base.pro b/apps/sample/trimesh_base/trimesh_base.pro index dfea4efd..3b4478ca 100644 --- a/apps/sample/trimesh_base/trimesh_base.pro +++ b/apps/sample/trimesh_base/trimesh_base.pro @@ -7,6 +7,6 @@ DEPENDPATH += . INCLUDEPATH += . ../../.. CONFIG += console stl TEMPLATE = app -SOURCES += trimesh_base.cpp ../../../wrap/ply/plylib.cpp +SOURCES += trimesh_base.cpp # Mac specific Config required to avoid to make application bundles CONFIG -= app_bundle