From: asl Date: Mon, 26 Oct 2015 10:12:49 +0000 (+0300) Subject: documentation is updated X-Git-Tag: v1.5~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24328ae4c4aeab75e5f7f049b017ade83f6f5b54;p=modules%2Fhydro.git documentation is updated --- diff --git a/src/HYDROData/HYDROData_LandCoverMap.cxx b/src/HYDROData/HYDROData_LandCoverMap.cxx index 9f941ce4..ff197152 100644 --- a/src/HYDROData/HYDROData_LandCoverMap.cxx +++ b/src/HYDROData/HYDROData_LandCoverMap.cxx @@ -517,6 +517,13 @@ bool HYDROData_LandCoverMap::Merge( const TopTools_ListOfShape& theFaces, const 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 ) { @@ -582,12 +589,12 @@ TopoDS_Shape HYDROData_LandCoverMap::MergeFaces( const TopTools_ListOfShape& the 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;