From: Anthony Geay Date: Mon, 2 Mar 2020 08:19:46 +0000 (+0100) Subject: creating_meshes_ex02.py test is now OK X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=76e2778111d3381ee665ae99b621e6d0229012a0;p=modules%2Fsmesh.git creating_meshes_ex02.py test is now OK --- diff --git a/src/SMDS/SMDS_UnstructuredGrid.cxx b/src/SMDS/SMDS_UnstructuredGrid.cxx index ce46543bf..e06cf3ba2 100644 --- a/src/SMDS/SMDS_UnstructuredGrid.cxx +++ b/src/SMDS/SMDS_UnstructuredGrid.cxx @@ -366,7 +366,7 @@ void SMDS_UnstructuredGrid::copyBloc(vtkUnsignedCharArray * newTypes, vtkIdType oldLoc = ((vtkIdTypeArray *)(this->Connectivity->GetOffsetsArray()))->GetValue( iOld ); vtkIdType nbpts; vtkIdType const *oldPtsCell(nullptr); - this->Connectivity->GetCell( oldLoc, nbpts, oldPtsCell ); + this->Connectivity->GetCell( oldLoc+iOld, nbpts, oldPtsCell ); if ((vtkIdType) pointsCell.size() < nbpts ) pointsCell.resize( nbpts ); for ( int l = 0; l < nbpts; l++ )