• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Constructing smooth line from points
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Constructing smooth line from points
      • From: Rimas <email@hidden>
References: 
 >Constructing smooth line from points (From: Rimas <email@hidden>)

  • Prev by Date: Re: HUD Windows
  • Next by Date: [[NSView animator] setHidden:YES] doesn't fade?
  • Previous by thread: Constructing smooth line from points
  • Next by thread: Re: Constructing smooth line from points
  • Index(es):
    • Date
    • Thread