added option for filtering close mesh lines.