Variations on the same theme... Basically 2droof-final-new.lsp is now the same as 2droof-final-n-m-loop.lsp... I named new lisps by iteration priorities - so n is first which means that it iterates firstly, then m, and last loop... Based on those 3 variable that iterate over and over until process is finished there are 6 combinations... Still I leaved 2droof-final-new.lsp, but now it firstly looks for best loop and then process only that loop... There is also 2droof-final-new-looplst.lsp that looks for all best loops and then process them all - like shorter version of 2droof-final-n-m-loop.lsp... Also I made modifications to 2droof-final-quick.lsp - now it expects correct input combination and reports solution success percentage... All in all main code is unchanged - it still can't solve roof-ultimate-test.dwg... I tested loop=42 which was found by 2droof-final-new.lsp as best and success percentage was only 90/102 found closed ridges boundaries, so it's almost no need for calculations - loop=1, errn=0, errm=0 is 89/102 success... I think based on picture chlh_jd posted that he has something better as my output isn't the same as his, but I think that some new replies won't happen unless there is good will from him as an author...
So long for now from me - everything is in *.lsp form and hopefully you can make mods if you find some lacks in my interventions...
Regards, M.R.