Skip to content

Commit

Permalink
blueprint: Fix extent constructor call
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Nov 18, 2024
1 parent 14b7372 commit 02ae7bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Tests/UnitTests/Core/Geometry/BlueprintNodeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,10 @@ BOOST_AUTO_TEST_CASE(LayerNodeDisk) {

std::vector<std::shared_ptr<Surface>> 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)
Expand Down Expand Up @@ -643,10 +643,10 @@ BOOST_AUTO_TEST_CASE(LayerNodeCylinder) {
std::vector<std::shared_ptr<Surface>> 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)
Expand Down

0 comments on commit 02ae7bc

Please sign in to comment.