Skip to content

Commit

Permalink
[functionfromimage3d] Read scale and offset
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Jul 9, 2024
1 parent b4eb2ae commit 2ab8e0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Tests/CPP_Bindings/Source/Volumetric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ namespace Lib3MF
theColor->SetTransform(transformation);
theColor->SetChannelName("color");
theColor->SetMinFeatureSize(0.1);


// Write to file
writer3MF = model->QueryWriter("3mf");
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2ab8e0f

Please sign in to comment.