Repelling closed polylines

See also the example here