Polygon edge projection segments
I have a 2D polygon and would like to find the polygon edge segments that are directly exposed to the projection line. I would like to get the end point of segments (highlighted in red color on edges). Any pointers how to solve this?
enter image description here Polygon Edge Projection.