Re: Constructing smooth line from points
Re: Constructing smooth line from points
- Subject: Re: Constructing smooth line from points
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 22 Jan 2008 20:00:06 -0500
On Jan 22, 2008 6:36 PM, Rimas <email@hidden> wrote:
> Situation:
> I want to draw a graph (curve) throw some points. I have used cubic
> spline interpolation. Mathematical result is great, but.. How to
> display it? Lets say my graph will be 150 pixels wide. So I have 150
> points (calculated). Firstly I have tried to draw separate pixels. The
> result was terrible. Second I have used NSBezierPath and added all
> points (tried appendBezierPathWithPoints:(NSPointArray)points count:
> and lineToPoint:(NSPoint)aPoint). Now result is much better but far
> away from perfect :(. Even turning antialiasing on does not help much.
> The line is not smooth.
Have you taken a look at this page from the CocoaDev wiki? <
http://www.cocoadev.com/index.pl?DrawingArbitaryCurvesFromPoints >
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden