3rdPart/salomesmesh - fix for vtk 9.3 compatibility

minimum required version is 7.1
This commit is contained in:
Adrian Insaurralde Avalos
2023-11-22 16:42:06 -03:00
committed by wwmayer
parent c2694fd7d9
commit d0fb2b8b29
2 changed files with 5 additions and 4 deletions

View File

@@ -39,10 +39,6 @@
#define SMDS_EXPORT
#endif
#ifdef VTK_HAS_MTIME_TYPE
#define VTK_MTIME_TYPE vtkMTimeType
#else
#define VTK_MTIME_TYPE unsigned long
#endif
#endif

View File

@@ -1026,7 +1026,12 @@ void SMDS_UnstructuredGrid::BuildLinks()
GetLinks()->Allocate(this->GetNumberOfPoints());
GetLinks()->Register(this);
//FIXME: vtk9
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9,3,0)
GetLinks()->BuildLinks(this);
#else
GetLinks()->SetDataSet(this);
GetLinks()->BuildLinks();
#endif
GetLinks()->Delete();
#else
this->Links = SMDS_CellLinks::New();