On 8 Aug 2011, at 5:16 PM, N!K wrote:
> Does NSBezierPath do decimation as well as interpolation? I didn't find it in 
> the Class Reference.
> Or is there another class that does it? 
> Or must I do the decimation before plotting the data with NSBezierPath?

No, NSBezierPath doesn't do any kind of decimation or filtering. You'll need to 
do that yourself and then use something like NSBezierPath or CGContextAddLines 
to draw your curve once you've filtered and subsampled your data.


Also, FWIW, the last time I tried to do that (which was a long time ago, around 
the 10.1/10.2 timeframe) I discovered that Quartz took a superlinear amount of 
time to draw a polyline; it looked vaguely quadratic to me. Breaking the curve 
up into chunks of a few hundred points at a time made the drawing operation 
much faster (and the slight drawing imperfection wasn't noticeable). On the 
other hand, perhaps this problem has been fixed since then. :)


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to