How to Smoothly Round the Corners of a Rectangular Fence?

One way would be clever sketching on a single plane and rotating radius segments.