Please find the attached image for question reference.

data in hand -->

blue points coordinates, red points coordinates,

all the line segments including all intersecting lines,

start and end vectors of the line segments,

start and end points of the line segments.

After observing the image, blue points are present in some pattern and as I have all the segments, present in the geometry, I want to align the blue points to desired line segments(i.e A-A'-A''.....the outer most)

I have current logic that aligns the blue points to the nearest line segments, but in some cases, even though the line segments are near, it may not follow the same pattern as blue points.

Out of all segments, A-A'-A''....., B-B'-B''..... and C-C'-C''...... line segments are following the blue point patterns,

My question is out of all segments, how to sort that the A-A'-A''....or B-B''-B''..... line segment is matching the blue point pattern ? Or select the curve of red points those are matching pattern of blue ones?

More Chinmay Tagare's questions See All
Similar questions and discussions