close curve function

 From:  worg3
2940.4 
thank for the fast reply!