mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 18:44:39 +00:00
removed harmless warnings (added parenthesis to disambiguate if-then-else)
This commit is contained in:
parent
293e22e4cf
commit
c4f4db436c
@ -46,8 +46,10 @@ void QuadricSimplification(CMeshO &m,int TargetFaceNum, bool Selected, CallBack
|
||||
// Mark not writable un-selected vertices
|
||||
CMeshO::VertexIterator vi;
|
||||
for(vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
|
||||
{
|
||||
if(!(*vi).IsS()) (*vi).ClearW();
|
||||
else (*vi).SetW();
|
||||
}
|
||||
}
|
||||
|
||||
if(pp.PreserveBoundary && !Selected)
|
||||
|
||||
@ -48,8 +48,10 @@ void QuadricTexSimplification(CMeshO &m,int TargetFaceNum, bool Selected, CallB
|
||||
// Mark not writable un-selected vertices
|
||||
CMeshO::VertexIterator vi;
|
||||
for(vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
|
||||
{
|
||||
if(!(*vi).IsS()) (*vi).ClearW();
|
||||
else (*vi).SetW();
|
||||
}
|
||||
}
|
||||
|
||||
vcg::LocalOptimization<CMeshO> DeciSession(m);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user