Salome HOME
refs #548: Names of axes intersect each other.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_SplitPolylinesOp.cxx
index d6556fbafd290457137764ebfd5f4d8ef492d42c..bab464a82a4bd0a52192f7620a5fbbcf6daa91e4 100644 (file)
@@ -79,23 +79,24 @@ bool HYDROGUI_SplitPolylinesOp::processApply( int& theUpdateFlags,
   if ( !aPanel )
     return false;
 
-  QString aName = aPanel->GetResultName();
+  //TODO: QString aName = aPanel->GetResultName();
   Handle( HYDROData_PolylineXY ) aMainPolyline = aPanel->GetMainPolyline();
   Handle( HYDROData_PolylineXY ) aToolPolyline = aPanel->GetToolPolyline();
   HYDROData_SequenceOfObjects aPolylinesList = aPanel->GetPolylines();
   gp_Pnt2d aPoint = aPanel->GetPoint();
+  double aTolerance = 1E-7; //TODO
 
   HYDROData_PolylineOperator anOp;
   switch( aPanel->GetMode() )
   {
   case HYDROGUI_SplitPolylinesDlg::ByPoint:
-    anOp.Split( doc(), aName.toLatin1().data(), aMainPolyline, aPoint );
+    anOp.Split( doc(), aMainPolyline, aPoint, aTolerance );
     break;
   case HYDROGUI_SplitPolylinesDlg::ByTool:
-    anOp.Split( doc(), aName.toLatin1().data(), aMainPolyline, aToolPolyline );
+    anOp.Split( doc(), aMainPolyline, aToolPolyline, aTolerance );
     break;
   case HYDROGUI_SplitPolylinesDlg::Split:
-    anOp.Split( doc(), aName.toLatin1().data(), aPolylinesList );
+    anOp.Split( doc(), aPolylinesList, aTolerance );
     break;
   }