diff --git a/PhantomBuilder/matRad_PhantomVOIBox.m b/PhantomBuilder/matRad_PhantomVOIBox.m index c41258bb0..b57985017 100644 --- a/PhantomBuilder/matRad_PhantomVOIBox.m +++ b/PhantomBuilder/matRad_PhantomVOIBox.m @@ -44,9 +44,9 @@ offsets = obj.offset; dims = obj.boxDimensions; - for x = center(1)+offsets(1) - dims(1)/2 :1: center(1) + offsets(1) + dims(1)/2 - for y = center(2)+offsets(2) - dims(2)/2 :1: center(2) + offsets(2) + dims(2)/2 - for z = round(center(3)+offsets(3) - dims(3)/2) :1: center(3) + offsets(3) + dims(3)/2 + for x = center(1)+offsets(1) - round(dims(1)/2) :1: center(1) + offsets(1) + round(dims(1)/2) + for y = center(2)+offsets(2) - round(dims(2)/2) :1: center(2) + offsets(2) + round(dims(2)/2) + for z = center(3)+offsets(3) - round(dims(3)/2) :1: center(3) + offsets(3) + round(dims(3)/2) VOIHelper(y,x,z) = 1; end diff --git a/test/matRad_runTests.m b/test/matRad_runTests.m index ea47e55d6..2c58d0a56 100644 --- a/test/matRad_runTests.m +++ b/test/matRad_runTests.m @@ -25,7 +25,8 @@ warning('off','Octave:divide-by-zero'); end -exampleScripts = {'../examples/matRad_example2_photons.m',... +exampleScripts = {'../examples/matRad_example1_phantomBuilder.m',... + '../examples/matRad_example2_photons.m',... '../examples/matRad_example3_photonsDAO.m',... '../examples/matRad_example4_photonsMC.m',... '../examples/matRad_example5_protons.m',... @@ -55,6 +56,7 @@ matRad_unitTestTextManipulation(testScripts,'pln.propDoseCalc.resolution.y',['pln.propDoseCalc.resolution.y = ' num2str(unitTestResolution.y)]); matRad_unitTestTextManipulation(testScripts,'pln.propDoseCalc.resolution.z',['pln.propDoseCalc.resolution.z = ' num2str(unitTestResolution.z)]); matRad_unitTestTextManipulation(testScripts,'display(','%%%%%%%%%%%%%%% REMOVED DISPLAY FOR TESTING %%%%%%%%%%%%%%'); +matRad_unitTestTextManipulation(testScripts,'clear all','%%%%%%%%%%%%%%% REMOVED CLEAR ALL FOR TESTING %%%%%%%%%%%%%%'); errors = {}; %Running tests