added support for convex hull and bounding box