From fb12a2190e8826fd8b234dda7d375ef62ce95be1 Mon Sep 17 00:00:00 2001 From: "Orend, Dr Jan (ORJ)" <56254096+3dJan@users.noreply.github.com> Date: Sat, 7 Oct 2023 21:24:24 +0200 Subject: [PATCH] [Volumetric tests] Adding volume element to shell from mesh test --- Tests/CPP_Bindings/Source/Volumetric.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Tests/CPP_Bindings/Source/Volumetric.cpp b/Tests/CPP_Bindings/Source/Volumetric.cpp index 478c84f07..8b97f2f6f 100644 --- a/Tests/CPP_Bindings/Source/Volumetric.cpp +++ b/Tests/CPP_Bindings/Source/Volumetric.cpp @@ -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"); @@ -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