Hi guys,
I have been asking a lot of questions about clipping and in Qt 4.4 it works bad.
I couldn't find a way to optimize the clipping until now.
The weak part in Qt clipping is, in my opinion, the algorithm.
I haven't checked the algorithm that Qt developers have implemented, but after implementing another algorithm clipping works about 10 times faster( at least in my application).
The algorithm I am using is:
Sutherland and Hodgman's polygon-clipping algorithm
[IMPORTANT]
To speed up clipping even more I have improved the algorithm a bit to work faster in my use case; so I recommend everyone doing the same in their apps.
Hope that it helps.
Kacper
Bookmarks