For a complex polygon (i.e., self-intersecting), the choice between winding rules or Magnitude-Oddity distinguishes the way the polygon is filled.
But for disjoint polygons, there is some difference in performance between the winding rules or the Parity value. I understand that this will be specific for implantation, but which of the algorithms is more effective for non-complex polygons.
The question is what is the complexity (i.e. O (what?)) Of each of these algorithms. I want to know whether it is worth getting rid of some points in the polygon (mostly duplicates or those that are on the same line) to improve performance.
PS: If it matters at all, I use xlib
PPS: I can confirm that the problem is not hardware related, since using a different video card does not change the performance
source
share