]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug of 1 profile case
authorasl <asl@opencascade.com>
Fri, 9 Dec 2016 08:52:43 +0000 (11:52 +0300)
committerasl <asl@opencascade.com>
Fri, 9 Dec 2016 08:52:43 +0000 (11:52 +0300)
src/HYDROData/HYDROData_DTM.cxx

index eb981d14ff42f5d0c8358111800ab80cd4233639..d3a3c441f534fb99688bbb7dba1f9b68a892cbf7 100644 (file)
@@ -495,6 +495,9 @@ void HYDROData_DTM::CreateProfiles(const std::vector<Handle_HYDROData_Profile>&
     return;
   theOutPoints = Interpolate( theProfiles, theDDZ, theSpatialStep, theOutLeft, theOutRight, theOutMainProfiles, InvInd );
   //note that if Create3dPres is false => Create2dPres flag is meaningless!
+  if( theOutPoints.empty() )
+    return;
+
   if (Create3dPres)
   {
     TopTools_IndexedMapOfOrientedShape ll = Create3DShape( theOutLeft, theOutRight, theOutMainProfiles);