Hi,
I have a curve defined by QPolygonF and a line defined by QLineF.
Is there a way to calculate their intersection points in Qt, as shown in the chart?
Thanks!
Hi,
I have a curve defined by QPolygonF and a line defined by QLineF.
Is there a way to calculate their intersection points in Qt, as shown in the chart?
Thanks!
You can build an array of QLineF using the QPolygonF points and call QLineF::intersect for each line of array.
A camel can go 14 days without drink,
I can't!!!
Thanks. That is what I am doing right now. It is slow. I have googled around and found so-called "sweep line algorithm", wish this would be available in Qt...
http://www.google.com/search?q=sweep...L_enUS289US289
Bookmarks