1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #include "HYDROData_SplitToZonesTool.h"
21 #include "HYDROData_PolylineXY.h"
22 #include "HYDROData_ShapesGroup.h"
23 #include <HYDROData_Transform.h>
24 #include <BRepAlgoAPI_Cut.hxx>
25 #include <BRepAlgoAPI_Common.hxx>
26 #include <BRepBuilderAPI_MakeFace.hxx>
27 #include <BRep_Builder.hxx>
28 #include <TopExp_Explorer.hxx>
30 #include <TopoDS_Shape.hxx>
31 #include <TopoDS_Compound.hxx>
32 #include <TopoDS_Wire.hxx>
33 #include <TopoDS_Edge.hxx>
34 #include <BRepCheck_Analyzer.hxx>
35 #include <TopTools_ListOfShape.hxx>
36 #include <TopTools_ListIteratorOfListOfShape.hxx>
38 #include <BRepGProp.hxx>
39 #include <GProp_GProps.hxx>
40 #include <Geom_Plane.hxx>
41 #include <BRepBuilderAPI_FindPlane.hxx>
43 //#define DEB_SPLIT_TO_ZONES 1
44 //#define DEB_SPLIT_TO_ZONES_CHECK_PARTITION 1
45 #if (defined (DEB_SPLIT_TO_ZONES) || defined(DEB_SPLIT_TO_ZONES_CHECK_PARTITION))
46 #include <BRepTools.hxx>
47 static TCollection_AsciiString fileNameBefore("BeforeTranslation");
51 #include "HYDRO_trace.hxx"
53 TopoDS_Face HYDROData_SplitToZonesTool::SplitData::Face() const
59 if ( Shape.ShapeType() == TopAbs_FACE )
61 aResFace = TopoDS::Face( Shape );
63 else if ( Shape.ShapeType() == TopAbs_WIRE )
65 BRepBuilderAPI_MakeFace aMakeFace( TopoDS::Wire( Shape ), Standard_True );
67 if( aMakeFace.IsDone() )
68 aResFace = aMakeFace.Face();
75 Standard_Boolean buildLimFace(const TopoDS_Wire& theBndWire, TopoDS_Face& outFace)
78 BRepGProp::LinearProperties(theBndWire,G);
79 const gp_Pnt& aCPnt = G.CentreOfMass();
81 BRepBuilderAPI_FindPlane fndPlane (theBndWire, Precision::Confusion());
83 aPln = fndPlane.Plane()->Pln();
85 aPln = gp_Pln(aCPnt, gp::OZ().Direction());
86 BRepBuilderAPI_MakeFace aMkFace(aPln, theBndWire);
87 if(aMkFace.IsDone()) {
88 outFace = aMkFace.Face();
89 if(!outFace.IsNull()) {
90 #ifdef DEB_SPLIT_TO_ZONES
91 // BRepTools::Write(limFace,"FL.brep");
96 return Standard_False;
98 //======================================================================================
100 void HYDROData_SplitToZonesTool::SetFileNames(const QString& theNameBefore, const QString& theNameAfter)
102 #ifdef DEB_SPLIT_TO_ZONES_CHECK_PARTITION
103 if(!theNameBefore.isNull() && !theNameBefore.isEmpty())
105 TCollection_AsciiString aName (theNameBefore.toStdString().data());
106 fileNameBefore = aName;
108 if(!theNameAfter.isNull() && !theNameAfter.isEmpty())
110 TCollection_AsciiString aName (theNameAfter.toStdString().data());
111 HYDROData_Transform::SetFileName (aName);
115 //======================================================================================
116 Standard_Integer HYDROData_SplitToZonesTool::SplitFaces(const TopoDS_Compound& theComp,
117 HYDROData_Transform& theTool)
120 theTool.SetArgument(theComp);
122 const Standard_Boolean bToTransform = theTool.ToTransform();
123 theTool.SetToTransform(bToTransform);
125 Standard_Integer anErr = theTool.ErrorStatus();
129 //======================================================================================
130 HYDROData_SplitToZonesTool::SplitDataList
131 HYDROData_SplitToZonesTool::Split( const HYDROData_SequenceOfObjects& theObjectList,
132 const HYDROData_SequenceOfObjects& theGroupsList,
133 const Handle(HYDROData_PolylineXY)& thePolyline )
136 SplitDataList anOutputSplitDataList;
137 if(theObjectList.IsEmpty()) return anOutputSplitDataList;
139 // Collect the object shapes to split. InputDataList will contain elements which will hold shape & name_of_shape.
140 SplitDataList anInputSplitDataList;
141 #ifdef DEB_SPLIT_TO_ZONES
142 TCollection_AsciiString aNam("Faces_");
144 for( int anIndex = 1, aLength = theObjectList.Length(); anIndex <= aLength; anIndex++ )
146 Handle(HYDROData_Entity) anObj = theObjectList.Value( anIndex );
149 Handle(HYDROData_Object) aGeomObj = Handle(HYDROData_Object)::DownCast( anObj );
150 if( !aGeomObj.IsNull() ) {
151 aShape = aGeomObj->GetTopShape();
154 if ( aShape.IsNull() )
156 #ifdef DEB_SPLIT_TO_ZONES
157 TCollection_AsciiString aName = aNam + anIndex + "_a.brep";
158 BRepTools::Write(aShape, aName.ToCString());
160 if ( aShape.ShapeType() == TopAbs_COMPOUND ) {
161 // Create split data for each face contained in the compound
162 TopExp_Explorer anExp( aShape, TopAbs_FACE );
163 for ( ; anExp.More(); anExp.Next() ) {
164 const TopoDS_Face& aFace = TopoDS::Face( anExp.Current() );
165 if ( !aFace.IsNull() ) {
166 SplitData aSplitData( SplitData::Data_Zone, aFace, anObj->GetName() );
167 anInputSplitDataList.append( aSplitData );
171 SplitData aSplitData( SplitData::Data_Zone, aShape, anObj->GetName() );
172 anInputSplitDataList.append( aSplitData );
176 SplitDataList anInputGroupList;
177 for( int anIndex = 1, aLength = theGroupsList.Length(); anIndex <=aLength; anIndex++ )
179 Handle(HYDROData_ShapesGroup) aGeomGroup =
180 Handle(HYDROData_ShapesGroup)::DownCast( theGroupsList.Value( anIndex ) );
181 if( aGeomGroup.IsNull() )
184 TopTools_SequenceOfShape aGroupShapes;
185 aGeomGroup->GetShapes( aGroupShapes );
186 for( int i = 1, aNbShapes = aGroupShapes.Length(); i <= aNbShapes; i++ ) {
187 const TopoDS_Shape& aGroupShape = aGroupShapes.Value( i );
188 if ( aGroupShape.IsNull() )
191 if ( aGroupShape.ShapeType() == TopAbs_COMPOUND ) {
192 TopExp_Explorer anExp( aGroupShape, TopAbs_EDGE );
193 for ( ; anExp.More(); anExp.Next() ) {
194 const TopoDS_Edge& anEdge = TopoDS::Edge( anExp.Current() );
195 if ( !anEdge.IsNull() ) {
196 SplitData aSplitData( SplitData::Data_Edge, anEdge, aGeomGroup->GetName() );
197 anInputGroupList.append( aSplitData );
201 SplitData aSplitData( SplitData::Data_Edge, aGroupShape, aGeomGroup->GetName() );
202 anInputGroupList.append( aSplitData );
203 #ifdef DEB_SPLIT_TO_ZONES
204 QString aStr = aSplitData.ObjectNames.join(" ");
205 DEBTRACE("Group# = " <<anIndex <<" Nmb in grp = " << i<< " Names = "<<aStr.toStdString() << " size = " <<aSplitData.ObjectNames.size());
210 // If only one shape is given we don't split it
211 // algorithm just returns the unpacked input data
212 bool limplus1Object(false);
213 if(theObjectList.Size() == 1 ) {
214 if(thePolyline.IsNull()) {
215 anOutputSplitDataList.append(anInputSplitDataList);
216 if(!theGroupsList.IsEmpty() )
217 anOutputSplitDataList.append(anInputGroupList);
218 return anOutputSplitDataList;
220 limplus1Object = true;// size =1 && hasLimits
222 HYDROData_DataMapOfShapeListOfString aDM3;
223 if(!anInputGroupList.isEmpty()) {// Old edge ==> List_Of_Names
224 QStringList aListOfNames;
225 for (int i=0;i < anInputGroupList.size() ;i++) {
226 const TopoDS_Shape& aSh = anInputGroupList.at(i).Shape;
227 aDM3.Add(aSh, anInputGroupList.at(i).ObjectNames);
231 // Step 1. Prepare Partition structures.
232 TopoDS_Shape aResult;
233 BOPCol_ListOfShape aLS;
234 QStringList aListOfNames;
235 TopoDS_Compound aCmp;
237 aBB.MakeCompound(aCmp);
238 for (int i=0;i < anInputSplitDataList.size() ;i++) {
239 const TopoDS_Shape& aSh = anInputSplitDataList.at(i).Shape;
240 aDM3.Add(aSh, anInputSplitDataList.at(i).ObjectNames);
243 #ifdef DEB_SPLIT_TO_ZONES
244 TCollection_AsciiString aName = aNam + i + "_b.brep";
245 BRepTools::Write(aSh, aName.ToCString());
248 #ifdef DEB_SPLIT_TO_ZONES_CHECK_PARTITION
249 TCollection_AsciiString aNameBefore = fileNameBefore + "_c.brep";
250 BRepTools::Write(aCmp, aNameBefore.ToCString());
253 HYDROData_DataMapOfShapeListOfShape aDM1;
254 if(anInputSplitDataList.size() > 1) {
255 HYDROData_Transform splitTool;
256 const Standard_Integer anErr = SplitFaces(aCmp, splitTool);
258 return anOutputSplitDataList;
259 aResult = splitTool.Shape();
260 if (aResult.IsNull())
261 return anOutputSplitDataList;
262 BRepCheck_Analyzer aCheck (aResult);
263 if(!aCheck.IsValid()) {
264 #ifdef DEB_SPLIT_TO_ZONES
265 DEBTRACE("result is not valid");
266 BRepTools::Write(aResult, "SplitFacesNV.brep");
268 return anOutputSplitDataList;
270 #ifdef DEB_SPLIT_TO_ZONES
271 BRepTools::Write(aResult, "SplitFacesV.brep");
274 // Step 3. Collect history
275 //HYDROData_DataMapOfShapeListOfShape aDM1;
276 BOPCol_ListIteratorOfListOfShape anIt(aLS);
277 #ifdef DEB_SPLIT_TO_ZONES
278 TCollection_AsciiString aNamM ("EdgM_");
279 TCollection_AsciiString aNamG ("EdgG_");
281 for (int i =1;anIt.More();anIt.Next(),i++) {
282 Standard_Boolean foundF(Standard_False);
283 const TopTools_ListOfShape& aListOfNew = splitTool.Modified(anIt.Value());
284 if(!aListOfNew.IsEmpty())
285 foundF = Standard_True;
287 TopTools_ListOfShape aList;
289 TopTools_ListIteratorOfListOfShape it(aListOfNew);
290 for(;it.More();it.Next())
291 aList.Append(it.Value());
292 /* *********************************************************************
293 // Bug in History: partition should give only modified entities! => temporary solution is used
294 //const TopTools_ListOfShape& aListOfGen = splitTool.Generated(anIt.Value());
295 //if(!aListOfGen.IsEmpty())
296 //foundF = Standard_True;
297 //it.Initialize(aListOfGen);
298 //for(;it.More();it.Next())
299 // aList.Append(it.Value());
300 ********************************************************************* */
301 if(!foundF) // face is not modified
302 aList.Append (anIt.Value());
303 aDM1.Add(anIt.Value(), aList);
304 #ifdef DEB_SPLIT_TO_ZONES
305 TCollection_AsciiString aName;
307 if(!anInputGroupList.isEmpty() ) { // 1
308 TopExp_Explorer exp (anIt.Value(), TopAbs_EDGE);
309 for (int j =1;exp.More();exp.Next(),j++) {
311 Standard_Boolean foundE(Standard_False);
312 const TopTools_ListOfShape& aListM = splitTool.Modified(exp.Current());
313 DEBTRACE("NB_EDGE_M = " << aListM.Extent());
314 if(aListM.Extent()) foundE = Standard_True;
315 it.Initialize(aListM);
316 for(int k=1;it.More();it.Next(),k++) {
317 aList.Append(it.Value());
318 #ifdef DEB_SPLIT_TO_ZONES
319 aName = aNamM + i + j +k +"_d.brep";
320 BRepTools::Write(it.Value(),aName.ToCString());
323 /* *********************************************************************
324 //const TopTools_ListOfShape& aListG = splitTool.Generated(exp.Current());
325 //if(aListG.Extent()) foundE = Standard_True;
326 //it.Initialize(aListG);
327 //for(int k=1;it.More();it.Next(),k++)
328 //aList.Append(it.Value());
329 //cout << "NB_EDGE = " << aList.Extent() <<endl;
330 ************************************************************************** */
332 aList.Append (exp.Current());
333 #ifdef DEB_SPLIT_TO_ZONES
334 aName = aNamG + i + j +"_e.brep";
335 BRepTools::Write(exp.Current(),aName.ToCString());
336 DEBTRACE(aName.ToCString()<< " = " << exp.Current().TShape());
339 aDM1.Add(exp.Current(), aList);
344 aResult = anInputSplitDataList.at(0).Shape; // get single input shape
347 // aDM2: NewShape ==> ListOfOldShapes
348 HYDROData_DataMapOfShapeListOfShape aDM2;
349 // make limiting face
350 HYDROData_DataMapOfShapeListOfShape aDM4;
351 Standard_Boolean hasLimits(Standard_False);
353 HYDROData_MapOfShape aBndView;
354 if (! thePolyline.IsNull()) {
355 Handle(TopTools_HSequenceOfShape) aConnectedWires = new TopTools_HSequenceOfShape;
356 int nbWires = thePolyline->GetNbConnectedWires(aConnectedWires);
357 const TopoDS_Wire aBndWire = TopoDS::Wire(aConnectedWires->Value(1));
358 if(!aBndWire.IsNull()) {
360 if(buildLimFace(aBndWire, limFace)) {
361 TopoDS_Shape aComResult;
362 BRepAlgoAPI_Common mkCom(aResult, limFace);
364 aComResult = mkCom.Shape();
365 BRepCheck_Analyzer aCheck (aComResult);
366 if(aCheck.IsValid()) {
367 #ifdef DEB_SPLIT_TO_ZONES
368 BRepTools::Write(aComResult,"CommonV.brep");
369 BRepTools::Write(limFace,"limFace.brep");
371 aBndName = thePolyline->GetName();
372 hasLimits = Standard_True; // DM2 should be filled here
373 TopExp_Explorer exp (limFace, TopAbs_EDGE);
374 for (int i =1;exp.More();exp.Next(),i++) {
375 const TopoDS_Shape& anEdge = exp.Current();
376 if(anEdge.IsNull()) continue;
377 aBndView.Add(anEdge);
378 QStringList aListOfNames;
379 aListOfNames.append(aBndName);
380 aDM3.Add(anEdge, aListOfNames);
381 TopTools_ListOfShape aList;
382 aList.Append(anEdge);
383 aDM1.Add(anEdge,aList);
385 HYDROData_MapOfShape aView;
386 exp.Init (aResult, TopAbs_FACE);
387 for (int i =1;exp.More();exp.Next(),i++) {
388 const TopoDS_Shape& aFace = exp.Current();
389 if(!aFace.IsNull()) {
390 const TopTools_ListOfShape& aListOfNew = mkCom.Modified(aFace);
391 DEBTRACE("Modified: " << aListOfNew.Extent());
392 if(!aListOfNew.IsEmpty()) {
393 aDM4.Add(aFace, aListOfNew);
394 #ifdef DEB_SPLIT_TO_ZONES
395 TCollection_AsciiString aName = aNam + i + "_f.brep";
396 BRepTools::Write(aListOfNew.Last(), aName.ToCString());
400 if(!mkCom.IsDeleted(aFace)) {
401 const TopTools_ListOfShape& aListOfGen = mkCom.Generated(aFace);
402 if(!aListOfGen.IsEmpty()) {
403 /* aDM4.Bind(aFace, aListOfGen); ??? */
404 #ifdef DEB_SPLIT_TO_ZONES
405 TCollection_AsciiString aName = aNam + i + "_g.brep";
406 BRepTools::Write(aListOfGen.Last(), aName.ToCString());
410 TopTools_ListOfShape aList;
412 aDM4.Add(aFace, aList); //the same face - not modified
416 TopExp_Explorer exp2 (aFace, TopAbs_EDGE);
417 for (int j =1;exp2.More();exp2.Next(),j++) {
418 const TopoDS_Shape& anEdge = exp2.Current();
419 if(!anEdge.IsNull()) {
420 if(aView.Contains(anEdge)) continue;
422 const TopTools_ListOfShape& aListOfNewEd = mkCom.Modified(anEdge);
423 if(!aListOfNewEd.IsEmpty())
424 aDM4.Add(anEdge, aListOfNewEd);
426 if(!mkCom.IsDeleted(anEdge)) {
427 const TopTools_ListOfShape& aListOfGenEd = mkCom.Generated(anEdge);
428 if(!aListOfGenEd.IsEmpty()) {
429 /* aDM4.Bind(anEdge, aListOfGenEd); ???*/
431 TopTools_ListOfShape aList;
432 aList.Append(anEdge);
433 aDM4.Add(anEdge, aList);//the same edge - not modified
440 } //end DM4 filling (phase 1)
441 //cout << "DM4 Ext = " <<aDM4.Extent() <<endl;
442 // phase 2 (from tool)
443 #ifdef DEB_SPLIT_TO_ZONES
444 TCollection_AsciiString aNam("BndEd_");
446 TopExp_Explorer expt (limFace, TopAbs_EDGE);
447 for(int i =1;expt.More();expt.Next(),i++) {
448 const TopoDS_Shape& anEdge = expt.Current();
449 if(!anEdge.IsNull()) {
450 const TopTools_ListOfShape& aListOfNewEd = mkCom.Modified(anEdge);
451 #ifdef DEB_SPLIT_TO_ZONES
452 TopTools_ListIteratorOfListOfShape itl(aListOfNewEd);
453 for(int j=1;itl.More();itl.Next(),j++) {
454 TCollection_AsciiString aName = aNam + i + "_" + j + "_j.brep";
455 BRepTools::Write(itl.Value(), aName.ToCString());
456 DEBTRACE(aName.ToCString()<<" = "<< itl.Value().TShape());
459 if(!aListOfNewEd.IsEmpty())
460 aDM4.Add(anEdge, aListOfNewEd);
462 if(!mkCom.IsDeleted(anEdge)) {
463 const TopTools_ListOfShape& aListOfGenEd = mkCom.Generated(anEdge);
464 if(!aListOfGenEd.IsEmpty()) {
465 /* aDM4.Bind(anEdge, aListOfGenEd); ??? */
467 TopTools_ListOfShape aList;
468 aList.Append(anEdge);
469 aDM4.Add(anEdge, aList);//the same edge - not modified
475 //cout << "DM4 Ext = " <<aDM4.Extent() <<endl;
477 // fill DM1 (old - new) and DM2 (new - old)
478 HYDROData_DataMapIteratorOfDataMapOfShapeListOfShape mIt(aDM4);
479 for(;mIt.More();mIt.Next()) {
480 const TopoDS_Shape& aKey = mIt.Key();//old
481 TopTools_ListOfShape aList;
483 const TopTools_ListOfShape& aListOfNew = mIt.Value();
484 aDM1.Add(aKey, aListOfNew);
485 TopTools_ListIteratorOfListOfShape it(aListOfNew);
486 for(;it.More();it.Next()) {
487 if(!aDM2.Contains(it.Value()))
488 aDM2.Add(it.Value(), aList);
490 TopTools_ListOfShape& aList = aDM2.ChangeFromKey(it.Value());
496 HYDROData_DataMapIteratorOfDataMapOfShapeListOfShape aMIt(aDM1);
497 //DM4 contains Old - New after common op. DM1: old - new after Split op.
498 for(;aMIt.More();aMIt.Next()) {
499 const TopoDS_Shape& aKey = aMIt.Key();
500 TopTools_ListOfShape aList;
502 const TopTools_ListOfShape& aListOfNew = aMIt.Value();
503 TopTools_ListIteratorOfListOfShape it(aListOfNew);
504 for(;it.More();it.Next()) {// iterate new: b1, b2, b3...
505 if(!aDM4.Contains(it.Value())) // bi - is deleted
506 continue; // go to the next bi
508 const TopTools_ListOfShape& aListOfNew4 = aDM4.FindFromKey(it.Value());
509 TopTools_ListIteratorOfListOfShape it4(aListOfNew4); // {c1, c2, c3,...}
510 for(;it4.More();it4.Next()) {
511 if(!aDM2.Contains(it4.Value()))
512 aDM2.Add(it4.Value(), aList);
514 TopTools_ListOfShape& aList = aDM2.ChangeFromKey(it4.Value());
523 hasLimits = Standard_False;
524 #ifdef DEB_SPLIT_TO_ZONES
525 BRepTools::Write(aComResult,"CommonNV.brep");
531 }// end limits processing
533 HYDROData_DataMapIteratorOfDataMapOfShapeListOfShape aMIt(aDM1);
534 for(;aMIt.More();aMIt.Next()) {
535 const TopoDS_Shape& aKey = aMIt.Key();
536 TopTools_ListOfShape aList;
538 const TopTools_ListOfShape& aListOfNew = aMIt.Value();
539 TopTools_ListIteratorOfListOfShape it(aListOfNew);
540 for(;it.More();it.Next()) {
541 if(!aDM2.Contains(it.Value()))
542 aDM2.Add(it.Value(), aList);
544 TopTools_ListOfShape& aList = aDM2.ChangeFromKey(it.Value());
550 // Step 4. Fill output structure.
551 #ifdef DEB_SPLIT_TO_ZONES
552 TCollection_AsciiString aNam4 ("SC_");
554 HYDROData_DataMapIteratorOfDataMapOfShapeListOfShape aMIt(aDM2);
555 for(int i =1;aMIt.More();aMIt.Next(),i++) {
556 SplitData aDestSplitData;
557 const TopoDS_Shape& aKey = aMIt.Key(); //new
558 aDestSplitData.Shape = aKey;
559 if(aKey.ShapeType() == TopAbs_FACE)
560 aDestSplitData.Type = SplitData::Data_Zone;
562 aDestSplitData.Type = SplitData::Data_Edge;
563 #ifdef DEB_SPLIT_TO_ZONES
564 TCollection_AsciiString aName = aNam4 + i + "_k.brep";
565 BRepTools::Write(aKey,aName.ToCString());
569 QStringList aListOfNames; // names processing
570 const TopTools_ListOfShape& aListOfOld = aMIt.Value();
571 TopTools_ListIteratorOfListOfShape it(aListOfOld);
572 for(int j =1;it.More();it.Next(),j++) {
573 const TopoDS_Shape& aSh = it.Value(); //old
574 if(aDM3.Contains(aSh)) {
575 const QStringList& ObjectNames = aDM3.FindFromKey(aSh);
576 aListOfNames.append(ObjectNames);
577 #ifdef DEB_SPLIT_TO_ZONES
578 TCollection_AsciiString aName = aNam4 + i +"_" + j + "_l.brep";
579 BRepTools::Write(aSh ,aName.ToCString());
582 #ifdef DEB_SPLIT_TO_ZONES
583 TCollection_AsciiString aName = aNam4 +"__" + i +"_" + j + "_m.brep";
584 BRepTools::Write(aSh ,aName.ToCString());
585 DEBTRACE(aName.ToCString()<<" = "<< aSh.TShape());
587 if(aBndView.Contains(aSh) && hasLimits) {
588 aListOfNames.append(aBndName);
589 #ifdef DEB_SPLIT_TO_ZONES
590 DEBTRACE(" BndName = "<<aBndName.toStdString());
596 aDestSplitData.ObjectNames = aListOfNames;
597 anOutputSplitDataList.append(aDestSplitData);
598 #ifdef DEB_SPLIT_TO_ZONES
599 QString aStr = aDestSplitData.ObjectNames.join(" ");
600 DEBTRACE("New# = " << i<< " Names = "<<aStr.toStdString() << " size = " <<aDestSplitData.ObjectNames.size());
604 return anOutputSplitDataList;
607 HYDROData_SplitToZonesTool::SplitDataList
608 HYDROData_SplitToZonesTool::Split( const HYDROData_SequenceOfObjects& theObjectList )
610 HYDROData_SequenceOfObjects aGeomGroups;
611 Handle(HYDROData_PolylineXY) aPolyline;
613 return Split( theObjectList, aGeomGroups, aPolyline );