• 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
Smooth a NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Smooth a NSBezierPath


  • Subject: Smooth a NSBezierPath
  • From: vance <email@hidden>
  • Date: Sun, 1 Jul 2007 19:30:45 -0700

Hello,

I have an array that contains points. There is an equal distance between all the points on the x axis. However, on the y axis they can be anywhere between ymin and ymax.

I use NSBezierPath lineToPoint to connect the current point to the next.

I would like to smooth the line that passes through the points, instead of having pointy edges at each point. Can this be done automatically?

I tried using curveToPoint: controlPoing1: controlPoint2, however i never managed to calculate the control points quite right for them to look good, there were always some deformities. I am hoping there is a way to automatically smooth the line, and if not, what is the correct way to calculate the control points given a set of vertexes that would from a line?

Thanks.
Vance
_______________________________________________

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


  • Prev by Date: Re: Cocoa and dead-code stripping
  • Next by Date: Re: Cocoa and dead-code stripping
  • Previous by thread: Re: speechSynthesizer willSpeakWord trouble
  • Next by thread: Re: Smooth a NSBezierPath
  • Index(es):
    • Date
    • Thread