Trim self-intersecting loops
The linear object is split at self-intersection points.