X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FOBJECT%2FSMESH_SVTKActor.cxx;h=de143a7901df15960ba33ab8bff1b8f6ae19f8da;hb=02df1b69aa4a8f3bb6b4784cdcf40596dd5cd171;hp=40f986b39ec20bf0473017b057065a426edfdd9e;hpb=bd8f1aee7c78f7d2eb82bd4fec5e08c9e3d280ce;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_SVTKActor.cxx b/src/OBJECT/SMESH_SVTKActor.cxx index 40f986b39..de143a790 100644 --- a/src/OBJECT/SMESH_SVTKActor.cxx +++ b/src/OBJECT/SMESH_SVTKActor.cxx @@ -31,7 +31,6 @@ #include #include - #include #include #include @@ -39,6 +38,9 @@ #include #include #include +#include + +#include vtkStandardNewMacro(SMESH_SVTKActor); @@ -125,9 +127,7 @@ SMESH_SVTKActor int aPartId = theMapIndex( ind ); if(vtkCell* aCell = theMapActor->GetElemCell(aPartId)) { -#if VTK_XVERSION > 50700 if (aCell->GetCellType() != VTK_POLYHEDRON) -#endif { if(aCell->GetCellType() == VTK_VERTEX ) { my0DGrid->InsertNextCell(aCell->GetCellType(),aCell->GetPointIds()); @@ -137,7 +137,6 @@ SMESH_SVTKActor myUnstructuredGrid->InsertNextCell(aCell->GetCellType(),aCell->GetPointIds()); } } -#if VTK_XVERSION > 50700 else { vtkPolyhedron *polyhedron = dynamic_cast(aCell); @@ -146,7 +145,6 @@ SMESH_SVTKActor vtkIdType *pts = polyhedron->GetFaces(); myUnstructuredGrid->InsertNextCell(aCell->GetCellType(),pts[0], pts+1); } -#endif } }