107void Dnn3piCylinder::RemoveAndAddPoints(
const vector<int> & indices_to_remove,
108 const vector<EtaPhi> & points_to_add,
109 vector<int> & indices_added,
110 vector<int> & indices_of_updated_neighbours) {
115 vector<int> plane_indices_to_remove;
116 for (
unsigned int i=0; i < indices_to_remove.size(); i++) {
117 MirrorVertexInfo * mvi;
118 mvi = & _mirror_info[indices_to_remove[i]];
119 plane_indices_to_remove.push_back(mvi->main_index);
120 if (mvi->mirror_index != INEXISTENT_VERTEX) {
121 plane_indices_to_remove.push_back(mvi->mirror_index);
127 vector<EtaPhi> plane_points_to_add;
128 indices_added.clear();
129 for (
unsigned int i=0; i < points_to_add.size(); i++) {
130 indices_added.push_back(_mirror_info.size());
131 _RegisterCylinderPoint(points_to_add[i], plane_points_to_add);
138 vector<int> updated_plane_neighbours, plane_indices_added;
139 _DNN->RemoveAndAddPoints(plane_indices_to_remove, plane_points_to_add,
140 plane_indices_added, updated_plane_neighbours);
146 for (i=0; i < updated_plane_neighbours.size(); i++) {
148 _cylinder_index_of_plane_vertex[updated_plane_neighbours[i]]);}
151 indices_of_updated_neighbours.clear();
152 for (set<int>::iterator iter = index_set.begin();
153 iter != index_set.end(); iter++) {
154 indices_of_updated_neighbours.push_back(*iter);