Interactive dynamical model of Poncelet's Porism for conics.
It's known that exact conditions for an n-gon to be bicentric are very complicated,
even for circles. http://www.mathworld.wolfram.com/PonceletsPorism.html
With this applet one can find approximate solution with appropriate accuracy
and see how it's work.