#define HYDROData_PolylineXY_HeaderFile
#include "HYDROData_IPolyline.h"
+#include <TopTools_HSequenceOfShape.hxx>
DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
*/
HYDRODATA_EXPORT virtual bool ImportShape( const TopoDS_Shape& theShape,
bool IsInterpolationAllowed,
- const Handle( HYDROData_PolylineXY )& theOldPolyline = NULL,
+ const Handle( HYDROData_PolylineXY )& theOldPolyline,
bool IsClosureAllowed = true,
double theDeviation = 1.);
*/
HYDRODATA_EXPORT bool IsClosed( const bool theIsSimpleCheck = true ) const;
+ /**
+ * Returns connected wires and their number, by rebuild of the wires from the edges, looking for connections
+ */
+ HYDRODATA_EXPORT int GetNbConnectedWires(Handle(TopTools_HSequenceOfShape)& aConnectedWires) const;
+
/**
- * Returns the distance beetwen first and point with index thePointIndex
+ * Returns the distance between first and point with index thePointIndex
* at the section with index theSectionIndex. -1 is returned if error is occurred.
*/
HYDRODATA_EXPORT double GetDistance( const int theSectionIndex,
const int thePointIndex ) const;
- /**
- * Returns the distance between a section and a point
- */
-// HYDRODATA_EXPORT double GetMinDistance( const int theSectionIndex,
-// const Point& thePoint ) const;
-
-
/**
* Returns number of sections.
*/