Possible bug: zoom and smooth

Sep 4, 2013 at 10:14 PM
If you zoom at a LineSeries whose property Smooth has been set to true you will notice an increasing memory usage and in few seconds an exception is thrown saying that you're out of memory. You can experience this in the examples too. The problem is with the generation of the segments, I think that the whole curve is being "smoothed" even if it's not visible in the plot.

Is there something that can be done to solve this?

PD. I've tested and even if you don't zoom at the Smoothed LineSeries but to an empty place you'll get the same problem.
Sep 5, 2013 at 6:53 AM
I see the problem, the Canonical spline creates a list and does not know the total number of points (depends on coordinates), so every time the plot renders, a new list is created.

Yes, I think the line should be clipped before smoothing. But we need a new clipping algorithm, which should include some points outside the clipping rectangle, otherwise the spline will be interpolated differently.

I have added it to the issues:
https://oxyplot.codeplex.com/workitem/10075