I tried to join polylines and it looked fine, but Grasshopper did not detect any shape. I zoomed in and it turned out that there were massive gaps between those ends and no function I used so far worked. Filleting removed the lines instead of joining them. Add to that, points that should be at the ends of lines are next to them. What can I do?