X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMeshReader.cxx;h=0feabf3fac5dc8123b5c12b4f468ebf2c97432bd;hb=140bf134a2e40ba737bdb85f040d2a052c9a8e2a;hp=d03b0ac29c69013051926ae048ddebaa51deb1ca;hpb=58f48784852ac6897f690a9ccbb2519ab8e5d9b6;p=clitk.git diff --git a/vv/vvMeshReader.cxx b/vv/vvMeshReader.cxx index d03b0ac..0feabf3 100644 --- a/vv/vvMeshReader.cxx +++ b/vv/vvMeshReader.cxx @@ -34,6 +34,7 @@ #endif // vtk +#include #include #include #include @@ -223,13 +224,6 @@ std::vector vvMeshReader::readSelectedContours() { std::vector result; #if GDCM_MAJOR_VERSION == 2 - -#if CLITK_USE_SYSTEM_GDCM == 0 - - clitkExceptionMacro("ERROR ! You need to compile vv with itk4 + system_gdcm to use this function"); - -#endif - gdcm::Reader reader; reader.SetFileName(filename.c_str()); reader.Read(); @@ -297,7 +291,11 @@ std::vector vvMeshReader::readSelectedContours() ids[1] = (ids[0] + 1) % tpoint_number.GetValue(); //0-1,1-2,...,n-1-0 contour->GetLines()->InsertNextCell(2, ids); } +#if VTK_MAJOR_VERSION <= 5 append->AddInput(contour); +#else + append->AddInputData(contour); +#endif } else if (contour_type == "POINT ")