From 63b50e565547ca3674c7c5f4b45662e10902663b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 2 Mar 2020 09:19:46 +0100 Subject: [PATCH] creating_meshes_ex02.py test is now OK --- src/SMDS/SMDS_UnstructuredGrid.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ ) -- 2.30.2