36 std::shared_ptr<CuboidVolumeBounds> vbds =
37 std::make_shared<CuboidVolumeBounds>(10, 10, 10);
42 double step = (max -
min) /
double(
n);
43 std::vector<std::unique_ptr<const Volume>> boxVolumes;
44 std::vector<std::unique_ptr<Box>> boxStore;
45 boxStore.reserve((
n + 1) * (
n + 1) * (
n + 1));
47 std::vector<Box*> boxes;
48 boxes.reserve(boxStore.size());
50 for (
size_t i = 0;
i <=
n;
i++) {
51 for (
size_t j = 0;
j <=
n;
j++) {
52 for (
size_t k = 0;
k <=
n;
k++) {
56 auto vol = std::make_unique<AbstractVolume>(trf, vbds);
60 std::make_unique<Box>(boxVolumes.back()->boundingBox()));
61 boxes.push_back(boxStore.back().get());
70 volumes.reserve(boxVolumes.size());
71 for (
auto& vol : boxVolumes) {
77 std::make_shared<CuboidVolumeBounds>(hl * 1.1, hl * 1.1, hl * 1.1);
81 top,
nullptr,
"TheVolume");