From eb716edbbd0eb02243824526cef8168890e16085 Mon Sep 17 00:00:00 2001 From: Jan Orend <56254096+3dJan@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:29:11 +0200 Subject: [PATCH] Adding missing ctor for CMoeNode --- Include/API/lib3mf_modnode.hpp | 2 +- Source/API/lib3mf_modnode.cpp | 5 +++++ Source/API/lib3mf_nodeiterator.cpp | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Include/API/lib3mf_modnode.hpp b/Include/API/lib3mf_modnode.hpp index 8dcccb673..8ea0e796d 100644 --- a/Include/API/lib3mf_modnode.hpp +++ b/Include/API/lib3mf_modnode.hpp @@ -66,7 +66,7 @@ class CModNode : public virtual IModNode, public virtual CTwoInputNode { */ public: - + CModNode(NMR::PModelImplicitNode pImplicitNode); /** * Put additional public members here. They will not be visible in the external API. */ diff --git a/Source/API/lib3mf_modnode.cpp b/Source/API/lib3mf_modnode.cpp index 1f4482e2e..bc59edb53 100644 --- a/Source/API/lib3mf_modnode.cpp +++ b/Source/API/lib3mf_modnode.cpp @@ -40,3 +40,8 @@ using namespace Lib3MF::Impl; Class definition of CModNode **************************************************************************************************************************/ +Lib3MF::Impl::CModNode::CModNode(NMR::PModelImplicitNode pImplicitNode) + : CTwoInputNode{pImplicitNode} +{ + CImplicitNode::m_pImplicitNode = pImplicitNode; +} diff --git a/Source/API/lib3mf_nodeiterator.cpp b/Source/API/lib3mf_nodeiterator.cpp index 08634c713..1274c8249 100644 --- a/Source/API/lib3mf_nodeiterator.cpp +++ b/Source/API/lib3mf_nodeiterator.cpp @@ -82,6 +82,7 @@ Abstract: This is a stub class definition of CNodeIterator #include "lib3mf_transposenode.hpp" #include "lib3mf_unsignedmeshnode.hpp" #include "lib3mf_vectorfromscalarnode.hpp" +#include "lib3mf_modnode.hpp" using namespace Lib3MF::Impl; @@ -260,6 +261,8 @@ IImplicitNode* Lib3MF::Impl::CNodeIterator::implicitNodeFromModelImplicitNode( return new CLengthNode(pNode); case eImplicitNodeType::Resource: return new CResourceIdNode(pNode); + case eImplicitNodeType::Mod: + return new CModNode(pNode); default: throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM);