From: szy Date: Fri, 31 Jan 2014 05:59:28 +0000 (+0000) Subject: 30.01.2014. Fix for bug with bounding wire. X-Git-Tag: BR_hydro_v_1_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=45d0764147fdb9dcfa24e83d99efd74c16341dc5;p=modules%2Fhydro.git 30.01.2014. Fix for bug with bounding wire. --- diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.cxx b/src/HYDROData/HYDROData_SplitToZonesTool.cxx index e496b1f2..f251cc75 100644 --- a/src/HYDROData/HYDROData_SplitToZonesTool.cxx +++ b/src/HYDROData/HYDROData_SplitToZonesTool.cxx @@ -247,8 +247,8 @@ HYDROData_SplitToZonesTool::SplitDataList // Step 3. Collect history //HYDROData_DataMapOfShapeListOfShape aDM1; BOPCol_ListIteratorOfListOfShape anIt(aLS); - //TCollection_AsciiString aNamM ("EdgM_"); - //TCollection_AsciiString aNamG ("EdgG_"); + TCollection_AsciiString aNamM ("EdgM_"); + TCollection_AsciiString aNamG ("EdgG_"); for (int i =1;anIt.More();anIt.Next(),i++) { Standard_Boolean foundF(Standard_False); const TopTools_ListOfShape& aListOfNew = splitTool.Modified(anIt.Value()); @@ -332,6 +332,7 @@ HYDROData_SplitToZonesTool::SplitDataList if(aCheck.IsValid()) { #ifdef DEB_SPLIT_TO_ZONES BRepTools::Write(aComResult,"CommonV.brep"); + BRepTools::Write(limFace,"limFace.brep"); #endif aBndName = thePolyline->GetName(); hasLimits = Standard_True; // DM2 should be filled here @@ -340,6 +341,12 @@ HYDROData_SplitToZonesTool::SplitDataList const TopoDS_Shape& anEdge = exp.Current(); if(anEdge.IsNull()) continue; aBndView.Add(anEdge); + QStringList aListOfNames; + aListOfNames.append(aBndName); + aDM3.Bind(anEdge, aListOfNames); + TopTools_ListOfShape aList; + aList.Append(anEdge); + aDM1.Bind(anEdge,aList); } HYDROData_MapOfShape aView; exp.Init (aResult, TopAbs_FACE); @@ -392,14 +399,25 @@ HYDROData_SplitToZonesTool::SplitDataList } } } - } //end DM4 filling (phase 1) + } //end DM4 filling (phase 1) //cout << "DM4 Ext = " <