From: Paul RASCLE Date: Wed, 30 Sep 2020 15:54:29 +0000 (+0200) Subject: allow exporting spline polylines as shapes X-Git-Tag: SH_V2_2_0~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b969fa790b5011bf3dddf3d8c0fd6fcd17c4105b;p=modules%2Fhydro.git allow exporting spline polylines as shapes --- diff --git a/src/HYDROData/HYDROData_ShapeFile.cxx b/src/HYDROData/HYDROData_ShapeFile.cxx index d372e18e..3e7b3486 100644 --- a/src/HYDROData/HYDROData_ShapeFile.cxx +++ b/src/HYDROData/HYDROData_ShapeFile.cxx @@ -151,9 +151,9 @@ int HYDROData_ShapeFile::WriteObjectPolyXY(Handle(HYDROData_Document) theDocumen std::vector x, y; std::vector anPartStart; - for (int i = 0; i < thePoly->NbSections(); i++) - if (thePoly->GetSectionType(i) == HYDROData_IPolyline::SECTION_SPLINE) - return -1; +// for (int i = 0; i < thePoly->NbSections(); i++) +// if (thePoly->GetSectionType(i) == HYDROData_IPolyline::SECTION_SPLINE) +// return -1; for (int i = 0; i < thePoly->NbSections(); i++) {