adjust bounding and clipping boxes according to surface shape