- HYDRODATA_EXPORT bool Split( const Handle( HYDROData_PolylineXY )& thePolyline,
- const gp_Pnt2d& thePoint ) const;
- HYDRODATA_EXPORT bool Split( const Handle( HYDROData_PolylineXY )& thePolyline,
- const Handle( HYDROData_PolylineXY )& theTool ) const;
- HYDRODATA_EXPORT bool Split( const HYDROData_SequenceOfObjects& thePolylines );
- HYDRODATA_EXPORT bool Merge( const HYDROData_SequenceOfObjects& thePolylines );
+ bool Split( const Handle( HYDROData_Document )& theDoc,
+ const Handle( HYDROData_PolylineXY )& thePolyline,
+ const gp_Pnt2d& thePoint,
+ double theTolerance ) const;
+ bool Split( const Handle( HYDROData_Document )& theDoc,
+ const Handle( HYDROData_PolylineXY )& thePolyline,
+ const Handle( HYDROData_PolylineXY )& theTool,
+ double theTolerance,
+ bool& theIsIntersected) const;
+ bool Split( const Handle( HYDROData_Document )& theDoc,
+ const HYDROData_SequenceOfObjects& thePolylines,
+ double theTolerance );
+ bool Merge( const Handle( HYDROData_Document )& theDoc,
+ const QString& theName,
+ const HYDROData_SequenceOfObjects& thePolylines,
+ bool isConnectByNewSegment,
+ double theTolerance );
+
+ static void GetWires(
+ const Handle( HYDROData_PolylineXY )& thePolyline,
+ std::vector<TopoDS_Wire>& theWires);
+
+ //! The method is intended to approximate the B-spline edge curve
+ //! by a 'Hydro' spline section.
+ //! Inserts the knot in the middle of each such B-spline piece that
+ //! the middle deflection is more than the required deflection and
+ //! more than the half of the maximal middle deflection.
+ //! Returns the initial maximal middle deflection.
+ //! Returns a negative value in the case of any error.
+ static double ReduceDeflection(
+ const double theDeflection,
+ HYDROData_TopoCurve& theCurve,
+ int& thePieceCount);