Salome HOME
import image: add texture to transformations
authorrraphael <raphael.raphael@c-s.fr>
Mon, 14 Dec 2020 10:40:35 +0000 (11:40 +0100)
committerrraphael <raphael.raphael@c-s.fr>
Fri, 15 Jan 2021 11:10:10 +0000 (12:10 +0100)
src/PartSet/PartSet_Module.cpp

index 8f79985da4975fab68bec9d75d03bbdb5808805b..5b8075e7a634fdb57a3e9af6a849e3116490ef91 100644 (file)
@@ -1420,7 +1420,6 @@ double getResultTransparency(const ResultPtr& theResult)
   return aTransparency;
 }
 
-
 //******************************************************
 void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObjectPtr& thePrs)
 {
@@ -1456,11 +1455,8 @@ void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObj
       anAISShape->SetDisplayMode(AIS_Shaded);
     }
   }
-
 }
 
-
-
 //******************************************************
 void PartSet_Module::customizePresentation(const ObjectPtr& theObject,
                                            const AISObjectPtr& thePrs) const
@@ -1490,8 +1486,7 @@ void PartSet_Module::customizePresentation(const ObjectPtr& theObject,
       thePrs->setTransparency(getResultTransparency(aResult));
 
       /// set texture  parameters
-      if(aResult->hasTextureFile())
-      {
+      if(aResult->hasTextureFile()){
         setTexture(aResult->getTextureFile(), thePrs);
       }
     }