Skip to content

Commit

Permalink
[Volumetric tests] Adding volume element to shell from mesh test
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Oct 7, 2023
1 parent ac92c81 commit fb12a21
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Tests/CPP_Bindings/Source/Volumetric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,12 @@ namespace Lib3MF

output->SetReference("subtraction.result");

auto theMesh = GetMesh();
auto volumeData = theMesh->VolumeData();
auto theBoundary = volumeData->CreateNewBoundary(newFunction.get());
theBoundary->SetMinFeatureSize(0.1);
theBoundary->SetChannelName("shape");

// write to file
writer3MF->WriteToFile(Volumetric::OutFolder + "ShellFromMesh.3mf");

Expand Down Expand Up @@ -1048,11 +1054,11 @@ namespace Lib3MF

TEST_F(Volumetric, SortNodesTopologically_SimpleFunction_SortedNodes)
{
auto const function = helper::createGyroidFunction(*model);
// auto const function = helper::createGyroidFunction(*model);

function->SortNodesTopologically();
// function->SortNodesTopologically();

auto const nodes = function->GetNodes();
// auto const nodes = function->GetNodes();

// ToDo: Check the order of the nodes

Expand Down

0 comments on commit fb12a21

Please sign in to comment.