helper functions for wrapping, arranging, and transforming geometric boxes