This is a typical geometry problem. When offsetting a radius smaller than the offset distance, geometry self-intersects. Is there a better way to do this where the offset corner just becomes sharp if the radius is too small, but retains nice topology?