From: adv Date: Mon, 30 Dec 2013 05:52:21 +0000 (+0000) Subject: Minor change for vertices ids. X-Git-Tag: BR_hydro_v_0_7~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22b644ae359fb629c422b3554e3353db8d126df2;p=modules%2Fhydro.git Minor change for vertices ids. --- 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 ); }