add option to use shape or convex hull as clearance area in zones. simplify code to handle clearance area