From 8b0788bf97688b91462142d3660f2362c5c83f48 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Fri, 11 Oct 2024 11:06:34 +0200 Subject: [PATCH] add drawing to test for illustration --- .../Geometry/CylinderVolumeStackTests.cpp | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Tests/UnitTests/Core/Geometry/CylinderVolumeStackTests.cpp b/Tests/UnitTests/Core/Geometry/CylinderVolumeStackTests.cpp index 7f5f1dfb64f..19850be4bbe 100644 --- a/Tests/UnitTests/Core/Geometry/CylinderVolumeStackTests.cpp +++ b/Tests/UnitTests/Core/Geometry/CylinderVolumeStackTests.cpp @@ -864,6 +864,34 @@ BOOST_AUTO_TEST_CASE(ResizeReproduction2) { trf3, *logger); } +// original size +// <---------------> +// +---------------+ +// | | +// | | +// | Volume 1 | +// | | +// | | +// +---------------+ +// first resize +// <--------------------------> +// +---------------+----------+ +// | | | +// | | | +// | Volume 1 | Gap | +// | | | Gap is +// | | | reused!--+ +// +---------------+----------+ | +// second resize | +// <-----------------------------------> | +// +---------------+-------------------+ | +// | | | | +// | | | | +// | Volume 1 | Gap |<-----+ +// | | | +// | | | +// +---------------+-------------------+ +// BOOST_AUTO_TEST_CASE(ResizeGapMultiple) { Transform3 trf = Transform3::Identity(); auto bounds = std::make_shared(70, 100, 100.0);