How do I intersect two bezier paths?
How do I intersect two bezier paths?
- Subject: How do I intersect two bezier paths?
- From: Scott Ellsworth <email@hidden>
- Date: Thu, 1 Sep 2005 16:42:55 -0700
Hi, all.
I want to draw a partially filled circle. The path to fill is the
intersection of
[worldCircle appendBezierPathWithArcWithCenter:NSMakePoint
(centerX, centerY) radius:outerRadius startAngle:0.0 endAngle:360.0];
[worldCircle closePath];
and
centerY += 2*outerRadius*ratio;
NSRect destRect = NSMakeRect(centerX-outerRadius, centerY-
outerRadius, 2*outerRadius, 2*outerRadius);
[worldCircle appendBezierPathWithRect:destRect];
I have looked through the basic drawing section of the docs, and it
appears that I do this via the clip rect. Is that the best way to
approach it?
(I am going to be drawing perhaps five hundred of these critters in a
typical screen.)
Scott
_______________________________________________
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