mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-23 21:17:56 +05:00
SMDS: Fix use of this->CellLocations due to vtk changes.
This fixes many smesh tests. 159 where failing (out of 160) and now only 59 are failing. So 100 tests fixed.
This commit is contained in:
parent
2b9c7dbd89
commit
db1b536077
@ -320,12 +320,14 @@ void SMDS_UnstructuredGrid::compactGrid(std::vector<int>& idNodesOldToNew, int n
|
||||
newFaceLocations->Squeeze();
|
||||
newFaces->Squeeze();
|
||||
this->SetCells( newTypes, newLocations, newConnectivity, newFaceLocations, newFaces );
|
||||
this->CellLocations = newLocations;
|
||||
newFaceLocations->Delete();
|
||||
newFaces->Delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
this->SetCells( newTypes, newLocations, newConnectivity, FaceLocations, Faces );
|
||||
this->CellLocations = newLocations;
|
||||
}
|
||||
|
||||
newTypes->Delete();
|
||||
@ -360,7 +362,8 @@ void SMDS_UnstructuredGrid::copyBloc(vtkUnsignedCharArray * newTypes,
|
||||
{
|
||||
int iOld = idCellsNewToOld[ iNew ];
|
||||
newTypes->SetValue( iNew, this->Types->GetValue( iOld ));
|
||||
vtkIdType oldLoc = this->CellLocations->GetValue( iOld );
|
||||
|
||||
vtkIdType oldLoc = ((vtkIdTypeArray *)(this->Connectivity->GetOffsetsArray()))->GetValue( iOld );
|
||||
vtkIdType nbpts;
|
||||
vtkIdType const *oldPtsCell(nullptr);
|
||||
this->Connectivity->GetCell( oldLoc, nbpts, oldPtsCell );
|
||||
|
Loading…
x
Reference in New Issue
Block a user