cleaned up a bit the quad simplifier

This commit is contained in:
Paolo Cignoni 2011-05-19 13:51:41 +00:00
parent 9349591548
commit ee5473c279
1 changed files with 2 additions and 7 deletions

View File

@ -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<MyPolyMesh>::FromHalfEdges(pm );
int ret;
if(outfile)
ret = tri::io::ExporterOFF<MyPolyMesh>::Save(pm, outfile, tri::io::Mask::IOM_BITPOLYGONAL );
else
ret = tri::io::ExporterOFF<MyPolyMesh>::Save(pm, "output.off", tri::io::Mask::IOM_BITPOLYGONAL );
int ret = tri::io::ExporterOFF<MyPolyMesh>::Save(pm, outfile, tri::io::Mask::IOM_BITPOLYGONAL );
if(ret != 0 )
{
cerr << "Error saving file" << endl;