Skip to content

Commit

Permalink
Merge pull request #1093 from tpersson/fixBoundingBoxIssue
Browse files Browse the repository at this point in the history
Fix bounding box issue
  • Loading branch information
rdemaria committed Aug 15, 2022
2 parents 3364035 + df70328 commit 734542a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mad_aper.c
Expand Up @@ -1117,7 +1117,8 @@ aper_calc(double p, double q, double* minhl,
bbymin = fmin(bbymin,pipey[j]); bbymax = fmax(bbymax,pipey[j]);
}
bbxmax *= 1.01; bbymax *= 1.01; bbxmin *= 1.01; bbymin *= 1.01; // 1% clearance

if (bbxmin > 0) bbxmin*=0.98; // Trick if the defined aperture is asymmetric around zero.
if (bbymin > 0) bbymin*=0.98;

/* not simply connex beampipes... adding apexes to the halo */
c = 0;
Expand Down

0 comments on commit 734542a

Please sign in to comment.