Skip to content
Snippets Groups Projects
Commit 2868efc5 authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Fixed <= in upper bounds

parent 2993bb81
No related branches found
No related tags found
No related merge requests found
......@@ -71,9 +71,9 @@ int main(int argc,char *argv[])
meants = 0;
long int num=0;
for (int z=mask.minz(); z<mask.maxz(); z++) {
for (int y=mask.miny(); y<mask.maxy(); y++) {
for (int x=mask.minx(); x<mask.maxx(); x++) {
for (int z=mask.minz(); z<=mask.maxz(); z++) {
for (int y=mask.miny(); y<=mask.maxy(); y++) {
for (int x=mask.minx(); x<=mask.maxx(); x++) {
if (fabs(mask(x,y,z))>1e-8) { // arbitrary "0" threshold
meants += vin.voxelts(x,y,z);
num++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment