From ee5473c2798525832f29d679900af93561a44924 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 19 May 2011 13:51:41 +0000 Subject: [PATCH] cleaned up a bit the quad simplifier --- apps/sample/polygonmesh_quadsimpl/quadsimpl.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/sample/polygonmesh_quadsimpl/quadsimpl.cpp b/apps/sample/polygonmesh_quadsimpl/quadsimpl.cpp index 05ca0354..500018f9 100644 --- a/apps/sample/polygonmesh_quadsimpl/quadsimpl.cpp +++ b/apps/sample/polygonmesh_quadsimpl/quadsimpl.cpp @@ -397,7 +397,7 @@ int main(int argc, char *argv[]) { char* meshfile = NULL; char* trimeshfile = NULL; - char* outfile = NULL; + char* outfile = "output.off"; int faces; bool adaptive = false; @@ -481,12 +481,7 @@ int main(int argc, char *argv[]) { vcg::tri::UpdateIndexed::FromHalfEdges(pm ); - int ret; - if(outfile) - ret = tri::io::ExporterOFF::Save(pm, outfile, tri::io::Mask::IOM_BITPOLYGONAL ); - else - ret = tri::io::ExporterOFF::Save(pm, "output.off", tri::io::Mask::IOM_BITPOLYGONAL ); - + int ret = tri::io::ExporterOFF::Save(pm, outfile, tri::io::Mask::IOM_BITPOLYGONAL ); if(ret != 0 ) { cerr << "Error saving file" << endl;