i’m not rendering any image on screen. i want to compute polygon visibility, as in this link
I have a bunch of polygons and locations of observers, all in 2D, and would like to know the shortest distances from the observers to the polygons along 360 degree directions. Since they are all in 2D so I set the z-coordinates of the polygons, of the rays’ origins and directions to all be zeros.