From 24328ae4c4aeab75e5f7f049b017ade83f6f5b54 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 26 Oct 2015 13:12:49 +0300 Subject: [PATCH] documentation is updated --- src/HYDROData/HYDROData_LandCoverMap.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; -- 2.39.2