input data – https://pastebin.com/uSSvwngP
input data format example:
profile_points_raw = [(1000, 1000, 0), (1000, 500, 0), (1000, 1500, 0)]
river_profile_point = [(1029.4445441834994, 944.3, 0), (1040.0288661575282, 944.3, 0)]
I have a profile_points_raw line and river_profile_points from the river_profile_points list.
My code inserts the points from the river_profile_points list into the profile_points_raw line between tuples with coordinates nearest to the points. I then draw a triangle, creating points A1, B, and C1.
The goal is to remove all points within a1 and c1 except point B, if there are any such points
CURRENT RESULT
DESIRED RESULT