|
| 1 | +--- a/src/3rdParty/salomesmesh/inc/SMDS_UnstructuredGrid.hxx |
| 2 | ++++ b/src/3rdParty/salomesmesh/inc/SMDS_UnstructuredGrid.hxx |
| 3 | +@@ -96,7 +96,7 @@ |
| 4 | + vtkCellLinks* GetLinks() |
| 5 | + { |
| 6 | + #ifdef VTK_CELL_ARRAY_V2 |
| 7 | +- return static_cast<vtkCellLinks*>(GetCellLinks()); |
| 8 | ++ return static_cast<vtkCellLinks*>(GetLinks()); |
| 9 | + #else |
| 10 | + return Links; |
| 11 | + #endif |
| 12 | +--- a/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp |
| 13 | ++++ b/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp |
| 14 | +@@ -4713,7 +4713,7 @@ |
| 15 | + } |
| 16 | + ficcon << "-------------------------------- connectivity " << nbPoints << endl; |
| 17 | + #ifdef VTK_CELL_ARRAY_V2 |
| 18 | +- vtkCellLinks *links = static_cast<vtkCellLinks*>(myGrid->GetCellLinks()); |
| 19 | ++ vtkCellLinks *links = static_cast<vtkCellLinks*>(myGrid->GetLinks()); |
| 20 | + #else |
| 21 | + vtkCellLinks *links = myGrid->GetCellLinks(); |
| 22 | + #endif |
| 23 | +--- a/src/3rdParty/salomesmesh/src/SMDS/SMDS_MeshNode.cpp |
| 24 | ++++ b/src/3rdParty/salomesmesh/src/SMDS/SMDS_MeshNode.cpp |
| 25 | +@@ -69,7 +69,7 @@ |
| 26 | + SMDS_UnstructuredGrid * grid = mesh->getGrid(); |
| 27 | + vtkPoints *points = grid->GetPoints(); |
| 28 | + points->InsertPoint(myVtkID, x, y, z); |
| 29 | +- SMDS_CellLinks *cellLinks = dynamic_cast<SMDS_CellLinks*>(grid->GetCellLinks()); |
| 30 | ++ SMDS_CellLinks *cellLinks = dynamic_cast<SMDS_CellLinks*>(grid->GetLinks()); |
| 31 | + assert(cellLinks); |
| 32 | + cellLinks->ResizeForPoint( myVtkID ); |
| 33 | + } |
| 34 | +@@ -191,7 +191,7 @@ |
| 35 | + SMDS_ElemIteratorPtr SMDS_MeshNode:: |
| 36 | + GetInverseElementIterator(SMDSAbs_ElementType type) const |
| 37 | + { |
| 38 | +- vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetCellLinks())->GetLink(myVtkID); |
| 39 | ++ vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetLinks())->GetLink(myVtkID); |
| 40 | + //MESSAGE("myID " << myID << " ncells " << l.ncells); |
| 41 | + return SMDS_ElemIteratorPtr(new SMDS_MeshNode_MyInvIterator(SMDS_Mesh::_meshList[myMeshId], l.cells, l.ncells, type)); |
| 42 | + } |
| 43 | +@@ -251,7 +251,7 @@ |
| 44 | + return SMDS_MeshElement::elementsIterator(SMDSAbs_Node); |
| 45 | + else |
| 46 | + { |
| 47 | +- vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetCellLinks())->GetLink(myVtkID); |
| 48 | ++ vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetLinks())->GetLink(myVtkID); |
| 49 | + return SMDS_ElemIteratorPtr(new SMDS_MeshNode_MyIterator(SMDS_Mesh::_meshList[myMeshId], l.cells, l.ncells, type)); |
| 50 | + } |
| 51 | + } |
| 52 | +@@ -350,7 +350,7 @@ |
| 53 | + const SMDS_MeshCell *cell = dynamic_cast<const SMDS_MeshCell*> (ME); |
| 54 | + assert(cell); |
| 55 | + SMDS_UnstructuredGrid* grid = SMDS_Mesh::_meshList[myMeshId]->getGrid(); |
| 56 | +- vtkCellLinks *Links = static_cast<vtkCellLinks*>(grid->GetCellLinks()); |
| 57 | ++ vtkCellLinks *Links = static_cast<vtkCellLinks*>(grid->GetLinks()); |
| 58 | + Links->ResizeCellList(myVtkID, 1); |
| 59 | + Links->AddCellReference(cell->getVtkId(), myVtkID); |
| 60 | + } |
| 61 | +@@ -366,7 +366,7 @@ |
| 62 | + |
| 63 | + bool SMDS_MeshNode::emptyInverseElements() |
| 64 | + { |
| 65 | +- vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetCellLinks())->GetLink(myVtkID); |
| 66 | ++ vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetLinks())->GetLink(myVtkID); |
| 67 | + return (l.ncells == 0); |
| 68 | + } |
| 69 | + |
| 70 | +@@ -378,7 +378,7 @@ |
| 71 | + |
| 72 | + int SMDS_MeshNode::NbInverseElements(SMDSAbs_ElementType type) const |
| 73 | + { |
| 74 | +- vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetCellLinks())->GetLink(myVtkID); |
| 75 | ++ vtkCellLinks::Link l = static_cast<vtkCellLinks*>(SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetLinks())->GetLink(myVtkID); |
| 76 | + |
| 77 | + if ( type == SMDSAbs_All ) |
| 78 | + return l.ncells; |
| 79 | +--- a/src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp |
| 80 | ++++ b/src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp |
| 81 | +@@ -11348,7 +11348,7 @@ |
| 82 | + { |
| 83 | + int oldId = *itn; |
| 84 | + //MESSAGE(" node " << oldId); |
| 85 | +- vtkCellLinks::Link l = static_cast<vtkCellLinks*>(grid->GetCellLinks())->GetLink(oldId); |
| 86 | ++ vtkCellLinks::Link l = static_cast<vtkCellLinks*>(grid->GetLinks())->GetLink(oldId); |
| 87 | + for (int i=0; i<l.ncells; i++) |
| 88 | + { |
| 89 | + int vtkId = l.cells[i]; |
| 90 | +@@ -11708,7 +11708,7 @@ |
| 91 | + { |
| 92 | + int oldId = itnod->first; |
| 93 | + //MESSAGE(" node " << oldId); |
| 94 | +- vtkCellLinks::Link l = static_cast<vtkCellLinks*>(grid->GetCellLinks())->GetLink(oldId); |
| 95 | ++ vtkCellLinks::Link l = static_cast<vtkCellLinks*>(grid->GetLinks())->GetLink(oldId); |
| 96 | + for (int i = 0; i < l.ncells; i++) |
| 97 | + { |
| 98 | + int vtkId = l.cells[i]; |
0 commit comments