From 457c98578c719f2401a93a70a90cb6e59189209d Mon Sep 17 00:00:00 2001 From: rraphael Date: Mon, 14 Dec 2020 11:40:35 +0100 Subject: [PATCH] import image: add texture to transformations --- src/PartSet/PartSet_Module.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 8f79985da..5b8075e7a 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -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); } } -- 2.39.2