mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +05:00
cartesian_algo.py nearly OK with container under valgrind
This commit is contained in:
parent
0f33e74889
commit
33b631f7de
@ -246,10 +246,11 @@ void SMDS_UnstructuredGrid::compactGrid(std::vector<int>& idNodesOldToNew, int n
|
||||
// --- create new compacted Connectivity, Locations and Types
|
||||
|
||||
int newConnectivitySize = this->Connectivity->GetNumberOfConnectivityEntries();
|
||||
vtkIdTypeArray *tmp((vtkIdTypeArray *)(this->Connectivity->GetOffsetsArray()));
|
||||
if ( newCellSize != oldCellSize )
|
||||
for ( int i = 0; i < oldCellSize - 1; ++i )
|
||||
if ( this->Types->GetValue( i ) == VTK_EMPTY_CELL )
|
||||
newConnectivitySize -= this->CellLocations->GetValue( i+1 ) - this->CellLocations->GetValue( i );
|
||||
newConnectivitySize -= tmp->GetValue( i+1 ) - tmp->GetValue( i );
|
||||
|
||||
vtkCellArray *newConnectivity = vtkCellArray::New();
|
||||
newConnectivity->Initialize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user