Re: [firstPath appendBezierPath: [secondPath bezierPathByReversingPath]];
Re: [firstPath appendBezierPath: [secondPath bezierPathByReversingPath]];
- Subject: Re: [firstPath appendBezierPath: [secondPath bezierPathByReversingPath]];
- From: Hamish Allan <email@hidden>
- Date: Fri, 21 May 2004 14:10:58 +0100
Hi Bob,
On May 21, 2004, at 13:30, Robert Clair wrote:
But you have to start the process somewhere, that is what moveTo is
for. If you
try and add a segment without establishing a current point with a
moveTo, the beginning point of the segment is undefined and you will
get, as you note, an error.
Well, you should not have to start the process somewhere. A closed path
is the same wherever you start drawing it. When you draw a circle, you
don't have to choose a 'start' point, do you? What is the problem with
taking the last point in the path as the point from which the first
line is drawn?
An open polyline of N segments has N+1 points and the path is created
by
moveTo: point0, lineTo: point1, lineTo: point2, ..., lineTo: pointN
Ah; from what you previously said:
And a rather large negative one - how can you assume
"paths with only line elements in them are implicitly closed" ???
Open polylines are not an unknown or unused item.
it seemed as though you were referring to "paths with only line
elements in them" as "open polylines". In answer to your question, I
can assume that paths with only line elements in them are implicitly
closed because, as you note, open polylines are not paths with only
line elements in them. They also have a point element in them.
I'm sorry, but I am not grasping the cause of your allergy to moveTo.
I have already explained what advantages would be offered by allowing
lineToPoint without moveToPoint. I have no objection to moveToPoint: as
you note, it would be impossible to create open polylines without it. I
am simply suggesting that bezier paths are enhanced in the way I
describe. You have stated that this would break existing code. Could
you please give an example of how?
Regards,
Hamish
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.