You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jaybgager edited this page Sep 25, 2026
·
2 revisions
Calculates the corner point coordinates of a bounding box using specified dimensions and a center point. Useful for generating fixed-size boxes centered on manually-chosen points of interest.
Arguments:
center_point (list of 3 integers, mandatory)
point coordinates in voxels for the center of the bounding box (e.g. [1,2,3])
dims (list of 3 integers, mandatory)
the dimensions of the bounding box in voxels
if odd numbers are passed, they'll be increased by 1 to maintain integer measurements
Returns:
corners (list of 2 lists of 3 integers)
coordinates of the corner points as [[Xmin,Ymin,Zmin],[Xmax,Ymax,Zmax]]