]> Creatis software - creaVtk.git/commitdiff
#3490 Bug Windows vtkTrimmedExtrusionFilter.h No such file or directory
authorEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Wed, 13 Jul 2022 12:10:18 +0000 (14:10 +0200)
committerEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Wed, 13 Jul 2022 12:10:18 +0000 (14:10 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkExtrusion.cxx

index b23dbf27f3af61108d6011b7c6aa0751599db498..deb13b8110ab074a1c78fab89ec206c7fff5ab7d 100644 (file)
@@ -4,7 +4,10 @@
 #include "bbcreaVtkExtrusion.h"
 #include "bbcreaVtkPackage.h"
 
-#include <vtkTrimmedExtrusionFilter.h>
+/* ------ Not exist in windows  old VTK version ---------
+  #include <vtkTrimmedExtrusionFilter.h>
+*/
+
 #include <vtkLinearExtrusionFilter.h>
 #include <vtkTriangleFilter.h>
 
@@ -37,18 +40,20 @@ void Extrusion::Process()
     {
         if ((bbGetInputType()>=0) && (bbGetInputType()<=1))
         {
-            vtkTrimmedExtrusionFilter *extrusion = vtkTrimmedExtrusionFilter::New();
-            extrusion->SetExtrusionDirection(1,1,1);
-            extrusion->SetInputData( bbGetInputIn() );
-            extrusion->SetTrimSurfaceData( bbGetInputIn2() );
-            if (bbGetInputType()==0)
-            {
-                extrusion->SetExtrusionStrategy(vtkTrimmedExtrusionFilter::BOUNDARY_EDGES);
-            } else {
-                extrusion->SetExtrusionStrategy(vtkTrimmedExtrusionFilter::ALL_EDGES);
-            }
-            extrusion->Update();
-            bbSetOutputOut( extrusion->GetTrimSurface() );
+/* ------ Not exist in windows  old VTK version ---------
+                               vtkTrimmedExtrusionFilter *extrusion = vtkTrimmedExtrusionFilter::New();
+                               extrusion->SetExtrusionDirection(1,1,1);
+                               extrusion->SetInputData( bbGetInputIn() );
+                               extrusion->SetTrimSurfaceData( bbGetInputIn2() );
+                               if (bbGetInputType()==0)
+                               {
+                                       extrusion->SetExtrusionStrategy(vtkTrimmedExtrusionFilter::BOUNDARY_EDGES);
+                               } else {
+                                       extrusion->SetExtrusionStrategy(vtkTrimmedExtrusionFilter::ALL_EDGES);
+                               }
+                               extrusion->Update();
+                               bbSetOutputOut( extrusion->GetTrimSurface() );
+*/
         }  // if Type 0 1
             
         if (bbGetInputType()==2)