From: Jérôme Date: Fri, 13 Nov 2020 10:12:54 +0000 (+0100) Subject: Fix issue #20331 : API export STL X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCEA_2020%2FLot1_Export_STL;p=modules%2Fshaper.git Fix issue #20331 : API export STL --- diff --git a/src/ExchangeAPI/ExchangeAPI_Export.cpp b/src/ExchangeAPI/ExchangeAPI_Export.cpp index 5ee608e61..b0d9e094c 100644 --- a/src/ExchangeAPI/ExchangeAPI_Export.cpp +++ b/src/ExchangeAPI/ExchangeAPI_Export.cpp @@ -57,8 +57,8 @@ ExchangeAPI_Export::ExchangeAPI_Export(const std::shared_ptr& ExchangeAPI_Export::ExchangeAPI_Export(const std::shared_ptr& theFeature, const std::string & theFilePath, const ModelHighAPI_Selection& theSelectedShape, - double theDeflectionRelative, - double theDeflectionAbsolute, + const ModelHighAPI_Double& theDeflectionRelative, + const ModelHighAPI_Double& theDeflectionAbsolute, const bool theIsRelative, const bool theIsASCII) : ModelHighAPI_Interface(theFeature) @@ -257,8 +257,8 @@ ExportPtr exportToXAO(const std::shared_ptr & thePart, ExportPtr exportToSTL(const std::shared_ptr & thePart, const std::string & theFilePath, const ModelHighAPI_Selection& theSelectedShape, - double theDeflectionRelative, - double theDeflectionAbsolute, + const ModelHighAPI_Double& theDeflectionRelative, + const ModelHighAPI_Double& theDeflectionAbsolute, const bool theIsRelative, const bool theIsASCII) { diff --git a/src/ExchangeAPI/ExchangeAPI_Export.h b/src/ExchangeAPI/ExchangeAPI_Export.h index fb2703da5..0d5caa212 100644 --- a/src/ExchangeAPI/ExchangeAPI_Export.h +++ b/src/ExchangeAPI/ExchangeAPI_Export.h @@ -32,6 +32,7 @@ #include //-------------------------------------------------------------------------------------- class ModelHighAPI_Selection; +class ModelHighAPI_Double; //-------------------------------------------------------------------------------------- @@ -57,10 +58,10 @@ public: explicit ExchangeAPI_Export(const std::shared_ptr& theFeature, const std::string & theFilePath, const ModelHighAPI_Selection& theSelectedShape, - double aDeflectionRelative , - double aDeflectionAbsolute, - const bool anIsRelative, - const bool anIsASCII); + const ModelHighAPI_Double& theDeflectionRelative , + const ModelHighAPI_Double& theDeflectionAbsolute, + const bool theIsRelative, + const bool theIsASCII); /// Constructor with values for XAO of selected result export. EXCHANGEAPI_EXPORT @@ -148,8 +149,8 @@ EXCHANGEAPI_EXPORT ExportPtr exportToSTL(const std::shared_ptr & thePart, const std::string & theFilePath, const ModelHighAPI_Selection& theSelectedShape, - double theDeflectionRelative, - double theDeflectionAbsolute, + const ModelHighAPI_Double& theDeflectionRelative, + const ModelHighAPI_Double& theDeflectionAbsolute, const bool theIsRelative, const bool theIsASCII);