• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I intersect two bezier paths?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Out of bounds exception from NSTextView
  • Next by Date: NSString initWithBytes
  • Previous by thread: session title
  • Next by thread: NSString initWithBytes
  • Index(es):
    • Date
    • Thread