diff --git a/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_FunctionFromImage3D.cpp b/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_FunctionFromImage3D.cpp index d3febf83f..06d05d45d 100644 --- a/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_FunctionFromImage3D.cpp +++ b/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_FunctionFromImage3D.cpp @@ -70,6 +70,8 @@ namespace NMR m_pFunctionFromImage3D->setTileStyleV(m_tileStyleV); m_pFunctionFromImage3D->setTileStyleW(m_tileStyleW); m_pFunctionFromImage3D->setFilter(m_filter); + m_pFunctionFromImage3D->setOffset(m_offset); + m_pFunctionFromImage3D->setScale(m_scale); // Parse Content diff --git a/Tests/CPP_Bindings/Source/Volumetric.cpp b/Tests/CPP_Bindings/Source/Volumetric.cpp index 740ba2db8..4489deb77 100644 --- a/Tests/CPP_Bindings/Source/Volumetric.cpp +++ b/Tests/CPP_Bindings/Source/Volumetric.cpp @@ -861,6 +861,7 @@ namespace Lib3MF theColor->SetTransform(transformation); theColor->SetChannelName("color"); theColor->SetMinFeatureSize(0.1); + // Write to file writer3MF = model->QueryWriter("3mf"); @@ -916,6 +917,9 @@ namespace Lib3MF Lib3MF::eTextureTileStyle::Clamp, Lib3MF::eTextureTileStyle::Mirror); + funcFromImage3d->SetScale(1.23); + funcFromImage3d->SetOffset(0.123); + // add volume data auto theMesh = GetMesh(); auto volumeData = model->AddVolumeData();