From 43e8fb7e1ff9a54b3ce92bbcaf23c7899efce3e8 Mon Sep 17 00:00:00 2001 From: Nicolas RECHATIN Date: Thu, 29 Jul 2021 13:55:01 +0200 Subject: [PATCH] fix Volume API to addVolume --- src/OperaAPI/OperaAPI_Volume.cpp | 4 ++-- src/OperaAPI/OperaAPI_Volume.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OperaAPI/OperaAPI_Volume.cpp b/src/OperaAPI/OperaAPI_Volume.cpp index b90926804..29f43e84d 100644 --- a/src/OperaAPI/OperaAPI_Volume.cpp +++ b/src/OperaAPI/OperaAPI_Volume.cpp @@ -67,7 +67,7 @@ void OperaAPI_Volume::dump(ModelHighAPI_Dumper& theDumper) const const std::string& aDocName = theDumper.name(aBase->document()); AttributeStringPtr anAttrMedium = aBase->string(OperaPlugin_Volume::MEDIUM()); - theDumper << aBase << " = model.Volume(" << aDocName << ", " << anAttrMedium << ", "; + theDumper << aBase << " = model.addVolume(" << aDocName << ", " << anAttrMedium << ", "; AttributeSelectionListPtr anAttrList = aBase->selectionList(OperaPlugin_Volume::VOLUME_LIST_ID()); if (anAttrList->isWholeResultAllowed() && !anAttrList->selectionType().empty()) @@ -79,7 +79,7 @@ void OperaAPI_Volume::dump(ModelHighAPI_Dumper& theDumper) const } //================================================================================================== -VolumePtr Volume(const std::shared_ptr& thePart, +VolumePtr addVolume(const std::shared_ptr& thePart, const ModelHighAPI_Double& theMedium, const std::list& theObjectList) { diff --git a/src/OperaAPI/OperaAPI_Volume.h b/src/OperaAPI/OperaAPI_Volume.h index cf7f49045..69d0d1593 100644 --- a/src/OperaAPI/OperaAPI_Volume.h +++ b/src/OperaAPI/OperaAPI_Volume.h @@ -74,7 +74,7 @@ typedef std::shared_ptr VolumePtr; /// \ingroup CPPHighAPI /// \brief Create Volume feature. OPERAAPI_EXPORT -VolumePtr Volume(const std::shared_ptr& thePart, +VolumePtr addVolume(const std::shared_ptr& thePart, const ModelHighAPI_Double& theMedium, const std::list& theObjectList); -- 2.39.2