Why modify vertices? Shapes are intended to be immutable. Just create a new shape instead.