diff --git a/apps/metro/metro.cpp b/apps/metro/metro.cpp index 9c682a53..e2d0d125 100644 --- a/apps/metro/metro.cpp +++ b/apps/metro/metro.cpp @@ -296,15 +296,14 @@ int main(int argc, char**argv) // save error files. if(flags & SamplingFlags::SAVE_ERROR) { - vcg::tri::io::PlyInfo p; - p.mask|=vcg::tri::io::Mask::IOM_VERTCOLOR | vcg::tri::io::Mask::IOM_VERTQUALITY /* | vcg::ply::PLYMask::PM_VERTQUALITY*/ ; + int saveMask|=vcg::tri::io::Mask::IOM_VERTCOLOR | vcg::tri::io::Mask::IOM_VERTQUALITY /* | vcg::ply::PLYMask::PM_VERTQUALITY*/ ; //p.mask|=vcg::ply::PLYMask::PM_VERTCOLOR|vcg::ply::PLYMask::PM_VERTQUALITY; if(ColorMax!=0 || ColorMin != 0){ vcg::tri::UpdateColor::PerVertexQualityRamp(S1,ColorMin,ColorMax); vcg::tri::UpdateColor::PerVertexQualityRamp(S2,ColorMin,ColorMax); } - tri::io::ExporterPLY::Save( S1,S1NewName.c_str(),true,p); - tri::io::ExporterPLY::Save( S2,S2NewName.c_str(),true,p); + tri::io::ExporterPLY::Save( S1,S1NewName.c_str(),saveMask); + tri::io::ExporterPLY::Save( S2,S2NewName.c_str(),saveMask); } // save error files.