Input data = https://pastebin.com/QLyBFT8Y
Input data format:
<code>river = [(x1, y1, z1, x2, y2, z2, x3, y3, z3), (...)]
profile_points_raw = [(x1, y1, z1), (x2, y2, z2), (...)]
</code>
<code>river = [(x1, y1, z1, x2, y2, z2, x3, y3, z3), (...)]
profile_points_raw = [(x1, y1, z1), (x2, y2, z2), (...)]
</code>
river = [(x1, y1, z1, x2, y2, z2, x3, y3, z3), (...)]
profile_points_raw = [(x1, y1, z1), (x2, y2, z2), (...)]
I have two objects, a profile_points_raw line and an array with river_profile_points lines.
I need to insert objects from river_profile_points so that the profile_points_raw line passes through them.
This is what the two objects look like in the drawing:
The desired result is an updated profile_points_raw line that passes through the river_profile_points object: