it almost works, need to remove empty vertices since remove_vertice seems to change the vertice_ids so the second call does god knows what