On Tuesday, 13 May 2025 at 18:30:34 UTC, Denis Feklushkin wrote: > I hope I didn't make a mistake in this code? The intersection logic is wrong, treating adjacency as intersection. Try this: `const bool intersects = (p_end > curr && p < curr_end)`.