Compute integer hull of 2D convex shape