From: vsr Date: Wed, 22 May 2013 13:20:53 +0000 (+0000) Subject: Fix problem with highlighting polyhedrons X-Git-Tag: V7_3_0a1~427 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=e0528f4426fbfb1ab5d8285045a3bcf703b4f041 Fix problem with highlighting polyhedrons --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 42193dc2f..b2882117b 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -78,11 +78,6 @@ #include #include -#include -#if !defined(VTK_XVERSION) -#define VTK_XVERSION (VTK_MAJOR_VERSION<<16)+(VTK_MINOR_VERSION<<8)+(VTK_BUILD_VERSION) -#endif - #include "utilities.h" #ifdef _DEBUG_ 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 } }