From 41b119a87d26004a7cf13cc77915dba9a6bcbc77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me?= Date: Fri, 13 Nov 2020 11:12:54 +0100 Subject: [PATCH] Fix issue #20331 : API export STL --- src/ExchangeAPI/ExchangeAPI_Export.cpp | 8 ++++---- src/ExchangeAPI/ExchangeAPI_Export.h | 13 +++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) 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); -- 2.39.2