X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ExportFeature.cpp;h=5f1fb171c0ee1f9e5e1283b9ddd51207b471d7bb;hb=745c72679f6346375d5e886b25cc3865f3c4daae;hp=0d38d857ca1723dc2dcb588318fa9312bab4d1c7;hpb=d83a470388e2ab8c482ef5e6bf164488436a3d9f;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 0d38d857c..5f1fb171c 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -103,17 +103,17 @@ void ExchangePlugin_ExportFeature::initAttributes() ModelAPI_AttributeSelectionList::typeId()); data()->addAttribute(ExchangePlugin_ExportFeature::STL_FILE_PATH_ID(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(ExchangePlugin_ExportFeature::STL_OBJECT_SELECTED(), + data()->addAttribute(ExchangePlugin_ExportFeature::STL_OBJECT_SELECTED(), ModelAPI_AttributeSelection::typeId()); data()->addAttribute(ExchangePlugin_ExportFeature::STL_DEFLECTION_TYPE(), ModelAPI_AttributeString::typeId()); - data()->addAttribute(ExchangePlugin_ExportFeature::STL_RELATIVE(), + data()->addAttribute(ExchangePlugin_ExportFeature::STL_RELATIVE(), ModelAPI_AttributeDouble::typeId()); - + double defelection = Config_PropManager::real("Visualization", "body_deflection"); real(ExchangePlugin_ExportFeature::STL_RELATIVE())->setValue(defelection); - data()->addAttribute(ExchangePlugin_ExportFeature::STL_ABSOLUTE(), + data()->addAttribute(ExchangePlugin_ExportFeature::STL_ABSOLUTE(), ModelAPI_AttributeDouble::typeId()); data()->addAttribute(ExchangePlugin_ExportFeature::STL_FILE_TYPE(), ModelAPI_AttributeString::typeId()); @@ -368,16 +368,15 @@ void ExchangePlugin_ExportFeature::exportSTL(const std::string& theFileName) if (string(STL_FILE_TYPE())->value() == STL_FILE_TYPE_ASCII()) { anIsASCII = true; - } + } // Perform the export std::string anError; bool aResult = false; aResult = STLExport(theFileName, - "STL", aShape, aValue, - anIsRelative, + anIsRelative, anIsASCII, anError);