Skip to content

Commit

Permalink
Adding missing ctor for CMoeNode
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Apr 23, 2024
1 parent 37e5ba8 commit eb716ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Include/API/lib3mf_modnode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
5 changes: 5 additions & 0 deletions Source/API/lib3mf_modnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions Source/API/lib3mf_nodeiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit eb716ed

Please sign in to comment.