Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests 1 to 7 OK, 8 and above failed
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_PolylineXY.h
diff --git
a/src/HYDROData/HYDROData_PolylineXY.h
b/src/HYDROData/HYDROData_PolylineXY.h
index 12117de8105dfaa68dfd30ed52a53c1f079807d3..d67f0ad5ad781a3b0c0694742f8057927b769c68 100644
(file)
--- a/
src/HYDROData/HYDROData_PolylineXY.h
+++ b/
src/HYDROData/HYDROData_PolylineXY.h
@@
-20,6
+20,7
@@
#define HYDROData_PolylineXY_HeaderFile
#include "HYDROData_IPolyline.h"
#define HYDROData_PolylineXY_HeaderFile
#include "HYDROData_IPolyline.h"
+#include <TopTools_HSequenceOfShape.hxx>
DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
@@
-132,7
+133,7
@@
public:
*/
HYDRODATA_EXPORT virtual bool ImportShape( const TopoDS_Shape& theShape,
bool IsInterpolationAllowed,
*/
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.);
bool IsClosureAllowed = true,
double theDeviation = 1.);
@@
-151,6
+152,11
@@
public:
*/
HYDRODATA_EXPORT bool IsClosed( const bool theIsSimpleCheck = true ) const;
*/
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 between first and point with index thePointIndex
* at the section with index theSectionIndex. -1 is returned if error is occurred.
/**
* Returns the distance between first and point with index thePointIndex
* at the section with index theSectionIndex. -1 is returned if error is occurred.