From: asl Date: Fri, 9 Dec 2016 08:52:43 +0000 (+0300) Subject: debug of 1 profile case X-Git-Tag: v1.6~2^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5be7421e1160e8dddd2a6840eacda53df80d53a9;p=modules%2Fhydro.git debug of 1 profile case --- diff --git a/src/HYDROData/HYDROData_DTM.cxx b/src/HYDROData/HYDROData_DTM.cxx index eb981d14..d3a3c441 100644 --- a/src/HYDROData/HYDROData_DTM.cxx +++ b/src/HYDROData/HYDROData_DTM.cxx @@ -495,6 +495,9 @@ void HYDROData_DTM::CreateProfiles(const std::vector& 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);