How to create nested polygon

Okay I see. But how do I compute the midpoints?