Smooth a NSBezierPath
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