From 5be7421e1160e8dddd2a6840eacda53df80d53a9 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 9 Dec 2016 11:52:43 +0300 Subject: [PATCH] debug of 1 profile case --- src/HYDROData/HYDROData_DTM.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2