cleaned up a bit the quad simplifier
This commit is contained in:
parent
9349591548
commit
ee5473c279
|
@ -397,7 +397,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
char* meshfile = NULL;
|
char* meshfile = NULL;
|
||||||
char* trimeshfile = NULL;
|
char* trimeshfile = NULL;
|
||||||
char* outfile = NULL;
|
char* outfile = "output.off";
|
||||||
int faces;
|
int faces;
|
||||||
bool adaptive = false;
|
bool adaptive = false;
|
||||||
|
|
||||||
|
@ -481,12 +481,7 @@ int main(int argc, char *argv[]) {
|
||||||
vcg::tri::UpdateIndexed<MyPolyMesh>::FromHalfEdges(pm );
|
vcg::tri::UpdateIndexed<MyPolyMesh>::FromHalfEdges(pm );
|
||||||
|
|
||||||
|
|
||||||
int ret;
|
int ret = tri::io::ExporterOFF<MyPolyMesh>::Save(pm, outfile, tri::io::Mask::IOM_BITPOLYGONAL );
|
||||||
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 );
|
|
||||||
|
|
||||||
if(ret != 0 )
|
if(ret != 0 )
|
||||||
{
|
{
|
||||||
cerr << "Error saving file" << endl;
|
cerr << "Error saving file" << endl;
|
||||||
|
|
Loading…
Reference in New Issue