From: mzn Date: Wed, 20 Nov 2013 07:39:48 +0000 (+0000) Subject: Minor corrections. X-Git-Tag: BR_hydro_v_0_3_1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d52c70872e31c7559cef6b9015d21338cbeb8746;p=modules%2Fhydro.git Minor corrections. --- diff --git a/src/HYDROData/HYDROData_Region.cxx b/src/HYDROData/HYDROData_Region.cxx index a4f68c33..384b4bd2 100644 --- a/src/HYDROData/HYDROData_Region.cxx +++ b/src/HYDROData/HYDROData_Region.cxx @@ -197,13 +197,12 @@ TopoDS_Shape HYDROData_Region::GetShape() const } // faces iterator if ( !aFuseShape.IsNull() ) { - ShapeUpgrade_UnifySameDomain aUnify; - aUnify.Initialize( aFuseShape ); - aUnify.UnifyFacesAndEdges(); - aUnify.Build(); - TopoDS_Shape aUnitedShape = aUnify.Shape(); + ShapeUpgrade_UnifySameDomain anUnifier( aFuseShape ); + anUnifier.UnifyFacesAndEdges(); + anUnifier.Build(); + TopoDS_Shape anUnitedShape = anUnifier.Shape(); - TopExp_Explorer anExp( aUnitedShape, TopAbs_FACE ); + TopExp_Explorer anExp( anUnitedShape, TopAbs_FACE ); if ( anExp.More() ) { aRegionFace = TopoDS::Face( anExp.Current() ); anExp.Next(); @@ -231,4 +230,4 @@ TopoDS_Shape HYDROData_Region::GetShape() const } return aResShape; -} \ No newline at end of file +}