mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-01 00:04:28 +05:00
Porting to ParaView 5.8: fix SMDS_UnstructuredGrid::compactGrid()
This commit is contained in:
parent
9334054522
commit
550311af7b
@ -249,7 +249,7 @@ void SMDS_UnstructuredGrid::compactGrid(std::vector<int>& idNodesOldToNew, int n
|
|||||||
if ( newCellSize != oldCellSize )
|
if ( newCellSize != oldCellSize )
|
||||||
for ( int i = 0; i < oldCellSize - 1; ++i )
|
for ( int i = 0; i < oldCellSize - 1; ++i )
|
||||||
if ( this->Types->GetValue( i ) == VTK_EMPTY_CELL )
|
if ( this->Types->GetValue( i ) == VTK_EMPTY_CELL )
|
||||||
newConnectivitySize -= this->CellLocations->GetValue( i+1 ) - this->CellLocations->GetValue( i );
|
newConnectivitySize -= this->Connectivity->GetCellSize( i );
|
||||||
|
|
||||||
vtkCellArray *newConnectivity = vtkCellArray::New();
|
vtkCellArray *newConnectivity = vtkCellArray::New();
|
||||||
newConnectivity->Initialize();
|
newConnectivity->Initialize();
|
||||||
@ -982,7 +982,7 @@ void SMDS_UnstructuredGrid::ModifyCellNodes(int vtkVolId, std::map<int, int> loc
|
|||||||
vtkIdType const *tmp(nullptr); // will refer to the point id's of the face
|
vtkIdType const *tmp(nullptr); // will refer to the point id's of the face
|
||||||
vtkIdType *pts; // will refer to the point id's of the face
|
vtkIdType *pts; // will refer to the point id's of the face
|
||||||
this->GetCellPoints(vtkVolId, npts, tmp);
|
this->GetCellPoints(vtkVolId, npts, tmp);
|
||||||
std::copy(tmp, tmp+npts, pts);
|
pts = const_cast< vtkIdType*>( tmp );
|
||||||
for (int i = 0; i < npts; i++)
|
for (int i = 0; i < npts; i++)
|
||||||
{
|
{
|
||||||
if (localClonedNodeIds.count(pts[i]))
|
if (localClonedNodeIds.count(pts[i]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user