path gained from svg: fix all possible intersections