Re: Bug in [path containsPoint]?
Re: Bug in [path containsPoint]?
- Subject: Re: Bug in [path containsPoint]?
- From: "Brian O'Brien" <email@hidden>
- Date: Mon, 13 Jun 2005 10:55:21 -0600
On Jun 13, 2005, at 10:21 AM, Nicko van Someren wrote:
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.
I have and it doesn't help. Perhaps this is resolved in Tiger.
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