X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_VTKPrsBathymetry.cxx;h=3ef0794ee9b50acea02ba342cc13d1360c52934f;hb=fce3f1240b6161d7cb837344078e5943b90eca65;hp=6833acec714a898feb6e226e969ab106b4f9303c;hpb=d5c604fa3a3fb29ffe704f6d21d861b1088cb9bf;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx index 6833acec..3ef0794e 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx @@ -95,8 +95,8 @@ void HYDROGUI_VTKPrsBathymetry::compute() { aZ = Z_MAX; // If Z value is invalid then use Z_MAX } - aPoints->InsertPoint( i - 1, anAltPnt.X, anAltPnt.Y, aZ ); - aVertex->GetPointIds()->SetId( 0, i - 1 ); + aPoints->InsertPoint( i, anAltPnt.X, anAltPnt.Y, aZ ); + aVertex->GetPointIds()->SetId( 0, i ); aVertexGrid->InsertNextCell( aVertex->GetCellType(), aVertex->GetPointIds()); aZValues->InsertNextValue( aZ ); }