Sampling NSBezierPath

Member
Posts: 96
Joined: 2011.07
Post: #1
Is there a nice way to sample points off an NSBezierPath?

respect,
pk

iFrog is coming.
Quote this message in a reply
⌘-R in Chief
Posts: 1,261
Joined: 2002.05
Post: #2
Nice way? Not really.

Flatten the path (there's a method for it) so all curves become line segments. Then you'll iterate through the path elements and you can travel along each segment as much as you want.
Quote this message in a reply
Member
Posts: 96
Joined: 2011.07
Post: #3
All right, I'll figure it out.

respect,
pk

iFrog is coming.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  down-sampling textures smoothly reubert 4 5,477 Jan 17, 2009 03:32 PM
Last Post: reubert
  NSBezierPath Not Drawing Correctly With NSTextField Justin Brimm 6 4,493 Apr 14, 2006 04:34 AM
Last Post: Justin Brimm