]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
allow exporting spline polylines as shapes
authorPaul RASCLE <paul.rascle@openfields.fr>
Wed, 30 Sep 2020 15:54:29 +0000 (17:54 +0200)
committerYOANN AUDOUIN <B61570@dsp0851742.postes.calibre.edf.fr>
Fri, 30 Oct 2020 16:08:45 +0000 (17:08 +0100)
src/HYDROData/HYDROData_ShapeFile.cxx

index d372e18e5c02214e7b1497c905290be89ae10f58..3e7b348697c3acc8221d92139c18bac006b2f5f2 100644 (file)
@@ -151,9 +151,9 @@ int HYDROData_ShapeFile::WriteObjectPolyXY(Handle(HYDROData_Document) theDocumen
   std::vector<double> x, y;
   std::vector<int> 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++)
   {