Much much better detection of boundary fragments for handling boundary conditions in sim