#include <HYDROGUI_MergePolylinesOp.h>
#include <HYDROGUI_MergePolylinesDlg.h>
#include <HYDROGUI_UpdateFlags.h>
+#include <HYDROData_Document.h>
#include <HYDROData_PolylineOperator.h>
HYDROGUI_MergePolylinesOp::HYDROGUI_MergePolylinesOp( HYDROGUI_Module* theModule )
if ( !aPanel )
return false;
+ QString aName = aPanel->GetResultName();
+ bool isConnectByNewSegment = aPanel->IsConnectByNewSegment();
HYDROData_SequenceOfObjects aPolylinesList = aPanel->selectedPolylines();
HYDROData_PolylineOperator anOp;
- anOp.Merge( aPolylinesList );
+ double aTolerance = 1E-7; //TODO
+ anOp.Merge( doc(), aName.toLatin1().data(), aPolylinesList, isConnectByNewSegment, aTolerance );
theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;
return true;