Skip to content
  • Will Bainbridge's avatar
    meshSearch: Prevent hang in calculation of line-boundary intersections · 911ea108
    Will Bainbridge authored
    This fix changes how the intersections loop ignores previously
    intersected faces. It now marks them by their index so that subsequent
    iterations ignore them.
    
    Before this change, after an intersection was found the start point was
    advanced by a small amount to move the past the intersection. The
    problem with this was if multiple boundary faces or the end point were
    in close proximity to the intersection then the move forward might span
    them. This could lead to intersections being missed or counted multiple
    times, in some cases indefinitely.
    
    Based on a patch contributed by Mattijs Janssens
    Resolves bug report https://bugs.openfoam.org/view.php?id=1147
    911ea108