crop_shape function

Crop shape object