Re: Bug in [path containsPoint]?
Re: Bug in [path containsPoint]?
- Subject: Re: Bug in [path containsPoint]?
- From: Nicko van Someren <email@hidden>
- Date: Mon, 13 Jun 2005 17:21:55 +0100
On 13 Jun 2005, at 17:13, Brian O'Brien wrote:
On Jun 3, 2005, at 5:38 PM, John C. Randolph wrote:
Are you sending -closePath, or just adding a path segment back to
the first point?
I am not calling -closePath
This is what I do.
NSBezierPath *path = [NSBezierPath bezierPath];
[path appendBezierPathWithPoints:ptArray count:m];
If you don't close the path then there can be edge cases which look
like what you are seeing. Until you close the path the system takes
what you have as being an open path with the start and end points
asymptotically close together. Try putting [path closePath]; after
the code you have and see if the problem goes away.
Nicko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden