249250251252253254255256
for (Triangle triangle : triangles) { final int[] v = new int[3]; for (int i = 0; i < 3; ++i) { v[i] = vertexIds.get(triangle.getVertex(i)); } session.dispatchCUIEvent(player, new SelectionPolygonEvent(v)); } }