From 3ef4726acf4603714dfab6c7a5d3f97c04f1beba Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Fri, 18 Oct 2024 10:23:13 +0200 Subject: [PATCH] blueprint: Fix extent constructor call --- .../Core/Geometry/BlueprintNodeTests.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Tests/UnitTests/Core/Geometry/BlueprintNodeTests.cpp b/Tests/UnitTests/Core/Geometry/BlueprintNodeTests.cpp index 274986de71b5..00d68df5a5f5 100644 --- a/Tests/UnitTests/Core/Geometry/BlueprintNodeTests.cpp +++ b/Tests/UnitTests/Core/Geometry/BlueprintNodeTests.cpp @@ -596,10 +596,10 @@ BOOST_AUTO_TEST_CASE(LayerNodeDisk) { std::vector> surfaces = makeFan(2.5_mm); - RootBlueprintNode root{{.envelope{{ - .z = {2_mm, 2_mm}, - .r = {3_mm, 5_mm}, - }}}}; + RootBlueprintNode root{{.envelope = ExtentEnvelope{{ + .z = {2_mm, 2_mm}, + .r = {3_mm, 5_mm}, + }}}}; root.addLayer("Layer0", [&](auto& layer) { layer.setSurfaces(surfaces) @@ -643,10 +643,10 @@ BOOST_AUTO_TEST_CASE(LayerNodeCylinder) { std::vector> surfaces = makeBarrelLayer(base, detectorElements, 300_mm, 24, 8, 2.5_mm); - RootBlueprintNode root{{.envelope{{ - .z = {2_mm, 2_mm}, - .r = {3_mm, 5_mm}, - }}}}; + RootBlueprintNode root{{.envelope = ExtentEnvelope{{ + .z = {2_mm, 2_mm}, + .r = {3_mm, 5_mm}, + }}}}; root.addLayer("Layer0", [&](auto& layer) { layer.setSurfaces(surfaces)