withRing

fun withRing(index: Int, ring: List<Vertex>): DrawnPolygon

This polygon with the ring at index (in rings) replaced by ring.