# fix for compiling with VTK 9.3 https://github.com/FreeCAD/FreeCAD/pull/11496/commits/68d380a64e033c40fcb9a6dc322d9e0178de52ee Bug: https://forum.freecad.org/viewtopic.php?t=82814 patch by adrianinsaval (commited in 68d380a64e033c40fcb9a6dc322d9e0178de52ee) --- a/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx +++ b/src/3rdParty/salomesmesh/inc/SMESH_SMDS.hxx @@ -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 --- a/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp +++ b/src/3rdParty/salomesmesh/src/SMDS/SMDS_UnstructuredGrid.cpp @@ -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();