What does the function MMG2D_bdryenforcement() do?

I can not understand the function MMG2D_bdryenforcement(MMG5_pMesh mesh, MMG5_pSol sol) very
well。Can someone tell me what algorithms this function refers to, and do you have any corresponding information?Thank you in advance for your answer!

Hi,

This function is used only in mesh generation mode. In this case, it is needed to check if the input edges exist in the mesh created by inserting all input points inside the bounding box (see the mesh generation algo described here : Let the library user provide a callback function which will compute the scalarSol for level set remeshing - #16 by Algiane ).
If missing edges are detected, the MMG2D_boundaryenforcement function insert these missing edges (by edge swaps).

Best Regards,