92 for( Integer i=0; i<
nb_node; ++i ){
97 info(4) <<
"ADD CORRESPONDANCE node=" << node.
uniqueId() <<
" node_to_merge=" <<
node_to_merge.uniqueId();
98 m_nodes_correspondance.insert(std::make_pair(
node_to_merge,node));
113 if (m_nodes_correspondance.find(node)!=m_nodes_correspondance.end()){
122 info(4) <<
"FACE TO MERGE uid=" << face.
uniqueId();
127 Node new_node = m_nodes_correspondance.find(*inode)->second;
128 if (
inode.index()==0)
131 info(4) <<
" OLD_node=" << (*inode).uniqueId() <<
" new=" <<
new_node.uniqueId();
137 info(4) <<
"NEW FACE=" <<
new_face.uniqueId() <<
" nb_cell=" <<
new_face.nbCell();
138 m_faces_correspondance.insert(std::make_pair(face,
new_face));
151 if (m_nodes_correspondance.find(*
inode)!=m_nodes_correspondance.end())
158 info(4) <<
"MARKED CELL2=" << cell.localId();
161 auto x = m_nodes_correspondance.find(node);
162 if (x!=m_nodes_correspondance.end()){
166 m_node_family->addCellToNode(
new_node,cell);
172 auto x = m_faces_correspondance.find(face);
173 if (x!=m_faces_correspondance.end()){
177 m_face_family->addBackCellToFace(
new_face,cell);
179 m_face_family->addFrontCellToFace(
new_face,cell);
187 info(4) <<
"MARKED FACE=" << face.localId();
190 auto x = m_nodes_correspondance.find(node);
191 if (x!=m_nodes_correspondance.end()){
193 m_node_family->removeFaceFromNode(node,face);
194 m_node_family->addFaceToNode(
new_node,face);
205 fr.checkAndChangeOrientation(face);
210 for(
const auto& x : m_faces_correspondance ){
212 m_face_family->removeFaceIfNotConnected(face);
216 for(
const auto& x : m_nodes_correspondance ){
218 m_node_family->removeNodeIfNotConnected(node);
221 m_mesh->modifier()->endUpdate();