makeboundingbox explicitly constructs a 3D bounding box from a set of 6 numbers defining the opposite corners of a cube. Most of the time as an end user you will want to compute/get the bounding box of objects/vertices using boundingbox.

makeboundingbox(x, dims, input = c("boundingbox", "bounds"))

Arguments

x

A vector or matrix specifying a bounding box

dims

The number of voxels in each dimension when x is a BoundingBox matrix.

input

Whether x defines the boundingbox or bounds of the image (see details).

See also

link{boundingbox}