boundary association works now for tiff boundary. the angle is selected to the angle with respect to the nearest boundary