Dear grasshopper friends.
I am trying to transform intersecting curves into sort of woven curves. Here is how the definition works (or should work;)
- intersect poly-lines with each other to get the intersection points
- Put the intersection points and the discontinuity points into separate lists of a data tree
- Move the intersecting points once up and once down and rebuilt the poly-lines with that just so they don’t intersect anymore but “dodge” each other
The datastream is organized that each list of a single polyline contains the points to rebuild the polyline plus the intersection point(s). Means if polyline1 intersects with polyline 2 both have the same point coordinates of their intersection in their individual list.
How can I tell this intersection point to move up for polyline 1 and to move down in the opposite direction for polyline 2?
Any idea is appreciated.
Here is the definition:weavetest_10_dupl-points.gh (19.4 KB)