<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote id="DWT153" style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;">Hi again,<br><br>Last email hopefully. I thought that some of the stuff I was saying was a bit confusing so thought I would email a short version of my code. Basically this is a shortened version of what I am trying to do but if you run the code with the attached mesh (of 2 tets) you can see what the problem is. The adjacent faces of the tet is not changing even though the connectivity is changing and I am removing adjacencies of the face from the tet.<br><br>Regards<br><br>Graeme<br>--------------------<br><br>Graeme A. Edwards<br><br>PhD Student - Materials & Mechanics Research Group<br><br>School of Engineering<br><br>University of Glasgow<br>Rankine Building<br>Oakfield Avenue<br>G12 8LT<br><br></blockquote>Hi Graeme,<br>Thank you for the testing code. Your code seems to negate/contradict all the suggestions I made before :(. <br><br>So I made an error in what I said before. Indeed, with this example, the adjacency of the tet did not seem to change, when you created <br>a new node on face 4.<br>If you modify your code like this:<br><br>diff testing.cpp testing_Graeme.cpp <br>37c37<br>< MBEntityHandle old_node=1;//one node on the shared face, but a corner node!!!!<br>---<br>> MBEntityHandle old_node=7;//one node on the shared face<br>55c55<br>< //result = moab->remove_adjacencies(T,&face,1);RR//remove old face<br>---<br>> result = moab->remove_adjacencies(T,&face,1);RR//remove old face<br><br>you would get expected result, new faces created, adjacent to the modified tet.<br>testing<br> Tri 1 - 7<br> Tri 4<br> Tri 1 - 4<br> Tri 1<br> Tri 8 - 10<br><br>So the problem is that the adjacency routine seems to overlook the mid-nodes. I can look into it deeper, but I do not think we are going to change the code there. Or maybe there is a flag, to consider midnodes too. I suggest, as a workaround, to always duplicate corner nodes (at least one), to get the desired effect.<br><br>You do not have to remove adjacency between face and tet, it has no effect, I commented it out. It is not stored, by default, and I suggest to not store it.<br><br>I hope this helps.<br>Iulian<br><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"></blockquote></div></body></html>