My teacher said that Cohen Sutherland algorithm http://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm cannot be used with concave polygon. I asked him why and he could not give me an answer(I don’t why hew works here).
So I ask You: Why Cohen-Sutherland algorithm is not appliable on concave polygon? What will go wrong?
From the Wikipedia article:
Take a look at the (informal) definition of convexity:
Your teacher may either be talking about scanlines generated from convex polygons, or lines as a special case of a convex polygon.
If the polygon is not convex, concave regions may be drawn as filled in based on the endpoints, as any point along the line is assumed to be part of the polygon. Similar assumptions apply for the other bullet points in the article.