getbounds VEX function

Returns the bounding box of the geometry specified by the filename.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. int getbounds(string filename, vector min&, vector max&)

Returns the bounding box of the geometry specified by the filename. The point corresponding to the minimum corner of the bounding box will be returned in min, while the maximum will be in max. Returns 1 if successful, or 0 if unable to load the geometry.