]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_Module.cpp
Salome HOME
Merge branch 'nrn/Lot2/AutoColor' into master
[modules/shaper.git] / src / PartSet / PartSet_Module.cpp
index c1ee1a6f0f611a10d9f3aacec3b7913fa15d81a1..a3095a374c5735baed2d52c0136cd790d74e6518 100644 (file)
 
 #include <SelectMgr_ListIteratorOfListOfFilter.hxx>
 #include <Graphic3d_Texture2Dmanual.hxx>
-#include <OCCViewer_Utilities.h>
 
+#ifdef HAVE_SALOME
+#include <OCCViewer_Utilities.h>
+#endif
 
 #define FEATURE_ITEM_COLOR "0,0,225"
 
@@ -1406,6 +1408,7 @@ double getResultTransparency(const ResultPtr& theResult)
 //******************************************************
 void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObjectPtr& thePrs)
 {
+#ifdef HAVE_SALOME
   Handle(AIS_InteractiveObject) anAIS = thePrs->impl<Handle(AIS_InteractiveObject)>();
   if (!anAIS.IsNull())
   {
@@ -1438,6 +1441,7 @@ void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObj
       anAISShape->SetDisplayMode(AIS_Shaded);
     }
   }
+#endif
 }
 
 //******************************************************