[Qt-interest] Clipping a polyline

Jeremy Sanders jeremy at jeremysanders.net
Mon Sep 14 18:01:45 CEST 2009


R. Reucher wrote:

> Oh, I have to correct myself again (and I hate that :). Of course, this
> will not work at all... but you should be able to gather the relevant
> points by clipping a QPolygon created from your set of points.
> 
> Someone may come up with an easier way.

Thanks, I expect that would work if I discard points at the corners of the 
clipping box (as long as they weren't in the original dataset).

Yes, by a polyline, I just mean a set of connected points that aren't closed 
in a polygon.

Jeremy

-- 
Jeremy Sanders <jeremy at jeremysanders.net>




More information about the Qt-interest-old mailing list