Hey guys I’m really struggling with this problem and can not figure out how to do it if my life depended on it. It seems to be rather easy but I am just missing something. I have some resources on it and some code I’ve been working on that I can send if needed. Here is the description.
I'm given a simple polygon and extension cuts (seen below), and I need to find out which of the extension cuts are essential/ no dominated. Definitions: Given a point p of a polygon, we say that an extension cut c is forward with respect to p if p lies to the left of the cut c. Otherwise c is backward with respect to p; see Fig. 2(a).
An extension cut c dominates another extension cut c' if all points in P to the left of
c are also to the left of c'. We say that an extension cut is an essential cut if it is not dominated by any other extension cut. We can view the essential cuts as having a cyclic ordering specified by the start points of the cuts as they are encountered during a counterclockwise scan of the polygon boundary. In this way each cut has a predecessor and a successor. The set of essential cuts of the polygon P will henceforth be denoted C. We can view the essential cuts as having a cyclic ordering specified by the start points of the cuts as they are encountered during a counterclockwise scan of the polygon boundary. In this way each cut has a predecessor and a successor. The set of essential
cuts of the polygon P will henceforth be denoted C.
I really would appreciate the help.
If you need more resources please ask. The final form of this project will be the Watchman route problem. I’m attaching two photos. The first one is an example of extension cuts (I already have those) and the second is an example of essential cuts (the black lines).