From 22b644ae359fb629c422b3554e3353db8d126df2 Mon Sep 17 00:00:00 2001 From: adv Date: Mon, 30 Dec 2013 05:52:21 +0000 Subject: [PATCH] Minor change for vertices ids. --- src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx index b02bd0e2..97d0d6c1 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx @@ -99,8 +99,8 @@ void HYDROGUI_VTKPrsBathymetry::compute() { aZ = Z_MAX; // If Z value is invalid then use Z_MAX } - aPoints->InsertPoint( i, anAltPnt.X(), anAltPnt.Y(), aZ ); - aVertex->GetPointIds()->SetId( 0, i ); + aPoints->InsertPoint( i - 1, anAltPnt.X(), anAltPnt.Y(), aZ ); + aVertex->GetPointIds()->SetId( 0, i - 1 ); aVertexGrid->InsertNextCell( aVertex->GetCellType(), aVertex->GetPointIds()); aZValues->InsertNextValue( aZ ); } -- 2.39.2