Cookbook recipe for polygonal basin inversion