return false;
}
+/**
+ Merge the given faces into the shell/face
+ @param theFaces the faces to merge
+ @param IsToUnify if the common edges should be removed (fused)
+ @param theTolerance the operation's tolerance
+ @return result shape (face or shell)
+*/
TopoDS_Shape HYDROData_LandCoverMap::MergeFaces( const TopTools_ListOfShape& theFaces,
bool IsToUnify, double theTolerance )
{
aResult = aShell;
anExplorer.Init( aResult, TopAbs_FACE );
- int i = 0;
+ int n = 0;
TopoDS_Face anOneFace;
- for( ; anExplorer.More(); anExplorer.Next(), i++ )
+ for( ; anExplorer.More(); anExplorer.Next(), n++ )
anOneFace = TopoDS::Face( anExplorer.Current() );
- if( i == 1 )
+ if( n == 1 )
aResult = anOneFace;
return aResult;