The insertion of each node is performed in cavityext in the following way:
- determine the cavity for the new node
 
- remove the cavity elements
 
- create new elements connecting the new node with each of the cavity
  faces provided the resulting volume is not extremely small. If it is, no
  element is created and the sign of the face is inverted thus marking the
  zero volume elements
 
- if any element has a very small volume or at least one very small height
  the original mesh of the cavity is restored
 
- since elements have been deleted and created the base element numbers of
  the nodes still to be inserted may not be correct any more: perform a check
  on these nodes and correct the base element numbers if necessary.
 
- label the newly generated faces and edges as external or not. Sub-edges
  of the edge on which the new node was inserted inherit the label from field
  iexternaledg
 
- for negative cavity faces:
- loop over all their edges and check whether they are still needed
  (i.e. still belong to another face)
 
- remove the face