diff --git a/UtilityApps/src/graphicalMaterialScan.cpp b/UtilityApps/src/graphicalMaterialScan.cpp index 163940966074c645ff8af185b30fc79ee4fefc7c..5efa32bdf19bcea54bda8c6989d6ab030b86a1fe 100644 --- a/UtilityApps/src/graphicalMaterialScan.cpp +++ b/UtilityApps/src/graphicalMaterialScan.cpp @@ -138,7 +138,7 @@ int main_wrapper(int argc, char** argv) { Vector3D p0, p1; // the two points between which material is calculated - MaterialManager matMgr(description.world()) ; + MaterialManager matMgr(description.world().volume() ) ; for (unsigned int isl=0; isl<nslice; isl++) { // loop over slices diff --git a/UtilityApps/src/materialScan.cpp b/UtilityApps/src/materialScan.cpp index 18a1b1d16a76455355dce88eaacf5e5ad5e35512..91a33806d5b5e7969e6256929461bf9606a7beda 100644 --- a/UtilityApps/src/materialScan.cpp +++ b/UtilityApps/src/materialScan.cpp @@ -57,7 +57,7 @@ int main_wrapper(int argc, char** argv) { description.fromCompact(inFile); direction = (p1-p0).unit(); - MaterialManager matMgr( description.world() ) ; + MaterialManager matMgr( description.world().volume() ) ; const MaterialVec& materials = matMgr.materialsBetween(p0, p1); double sum_x0 = 0; double sum_lambda = 0; diff --git a/UtilityApps/src/print_materials.cpp b/UtilityApps/src/print_materials.cpp index 1b53e454cbbc5c1e5a0eac6d0668ed14ca73a64c..77efd6efff7d2d17a5cc8ebf3a2ed2711d3440cb 100644 --- a/UtilityApps/src/print_materials.cpp +++ b/UtilityApps/src/print_materials.cpp @@ -58,7 +58,7 @@ int main_wrapper(int argc, char** argv ){ Vector3D p0( x0, y0, z0 ) ; Vector3D p1( x1, y1, z1 ) ; - MaterialManager matMgr( description.world() ) ; + MaterialManager matMgr( description.world().volume() ) ; const MaterialVec& materials = matMgr.materialsBetween( p0 , p1 ) ;