diff --git a/apps/sample/trimesh_base/trimesh_base.cpp b/apps/sample/trimesh_base/trimesh_base.cpp index d44ab0c0..1ee1a160 100644 --- a/apps/sample/trimesh_base/trimesh_base.cpp +++ b/apps/sample/trimesh_base/trimesh_base.cpp @@ -40,7 +40,7 @@ #include // normals -#include //class UpdateNormals +#include using namespace vcg; using namespace std; @@ -48,36 +48,36 @@ using namespace std; class MyEdge; class MyFace; class MyVertex; -struct MyUsedTypes : public UsedTypes< Use ::AsVertexType, - Use ::AsEdgeType, - Use ::AsFaceType>{}; +struct MyUsedTypes : public UsedTypes< Use ::AsVertexType, + Use ::AsEdgeType, + Use ::AsFaceType>{}; class MyVertex : public Vertex{}; class MyFace : public Face< MyUsedTypes, face::FFAdj, face::VertexRef, face::BitFlags > {}; -class MyEdge : public Edge{}; -class MyMesh : public vcg::tri::TriMesh< vector, vector , vector > {}; +class MyEdge : public Edge{}; +class MyMesh : public tri::TriMesh< vector, vector , vector > {}; int main( int argc, char **argv ) { - if(argc<2) - { - printf("Usage trimesh_base \n"); - return -1; - } + if(argc<2) + { + printf("Usage trimesh_base \n"); + return -1; + } - MyMesh m; + MyMesh m; - if(vcg::tri::io::ImporterPLY::Open(m,argv[1])!=0) - { - printf("Error reading file %s\n",argv[1]); - exit(0); - } + if(tri::io::ImporterPLY::Open(m,argv[1])!=0) + { + printf("Error reading file %s\n",argv[1]); + exit(0); + } - vcg::tri::UpdateTopology::FaceFace(m); - vcg::tri::UpdateFlags::FaceBorderFromFF(m); - vcg::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 ); + 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 ); - return 0; + return 0; }