]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug abort on display bathymetry on VTK viewer
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 30 Jun 2017 21:53:04 +0000 (23:53 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 30 Jun 2017 21:53:04 +0000 (23:53 +0200)
src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx

index 6833acec714a898feb6e226e969ab106b4f9303c..3ef0794ee9b50acea02ba342cc13d1360c52934f 100644 (file)
@@ -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 );
       }