From 4ca2f23a10d0e0c163c4abe27a088c6969a13835 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 22 Nov 2006 14:38:16 +0000 Subject: [PATCH] Clean useless code. --- apps/sample/trimesh_hole/trimesh_hole.cpp | 9 ++------- apps/sample/trimesh_hole/trimesh_hole.pro | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/sample/trimesh_hole/trimesh_hole.cpp b/apps/sample/trimesh_hole/trimesh_hole.cpp index c6a9a4d5..b745a67c 100644 --- a/apps/sample/trimesh_hole/trimesh_hole.cpp +++ b/apps/sample/trimesh_hole/trimesh_hole.cpp @@ -30,10 +30,6 @@ class MyVertex; class MyVertex : public VertexSimp2< MyVertex, MyEdge, MyFace, vert::Coord3f, vert::BitFlags, vert::Normal3f >{}; class MyFace : public FaceSimp2 < MyVertex, MyEdge, MyFace, face::VertexRef,face::FFAdj, face::Mark, face::BitFlags, face::Normal3f > {}; - -//class MyVertex:public Vertex{}; -//class MyFace : public FaceAFFM{}; - class MyMesh : public tri::TriMesh< std::vector, std::vector >{}; int main(int argc,char ** argv){ @@ -48,10 +44,11 @@ int main(int argc,char ** argv){ " 1) Trivial Ear \n" " 2) Leipa Ear \n" " 3) Selfintersection Ear \n" - " 4) Real Leipa \n" + " 4) Minimumweight \n" ); exit(0); } + int algorithm = atoi(argv[1]); if(algorithm < 0 && algorithm > 4) { @@ -89,8 +86,6 @@ int main(int argc,char ** argv){ break; } - //vcg::tri::UpdateTopology::FaceFace(m); - vcg::tri::io::ExporterPLY::Save(m,argv[3],false); return 0; } diff --git a/apps/sample/trimesh_hole/trimesh_hole.pro b/apps/sample/trimesh_hole/trimesh_hole.pro index abb01d8f..566d7654 100644 --- a/apps/sample/trimesh_hole/trimesh_hole.pro +++ b/apps/sample/trimesh_hole/trimesh_hole.pro @@ -9,4 +9,4 @@ INCLUDEPATH += . ..\..\..\ CONFIG += console stl TEMPLATE = app SOURCES += trimesh_hole.cpp ..\..\..\wrap\ply\plylib.cpp -HEADERS += ..\..\..\vcg\wrap\ply\plylib.h \ No newline at end of file +HEADERS += ..\..\..\wrap\ply\plylib.h \ No newline at end of file