• 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
Re: Calculating accurate bounds of stroked paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculating accurate bounds of stroked paths


  • Subject: Re: Calculating accurate bounds of stroked paths
  • From: Peter Zegelin <email@hidden>
  • Date: Wed, 9 Jul 2008 16:34:53 +1000

Cool I got it right - finally! Its on page 154 of the spec (174 in PDF viewer) section 4.3.

Me in another post "I believe the fully correct answer to calculate the extension is: (strokeWidth/2)/ sin(angle/2);"

Peter

On 09/07/2008, at 4:02 PM, Chris Suter wrote:

<snip>


"The miter limit helps you avoid spikes at the junction of two line segments connected by a miter join (NSMiterLineJoinStyle). If the ratio of the miter length—the diagonal length of the miter join—to the line thickness exceeds the miter limit, the joint is converted to a bevel join. The default miter limit value is 10, which converts miters whose angle at the joint is less than 11 degrees."

So what *is it*? A value in degrees? Or a ratio of two sides of a triangle? What triangle, exactly? How can I tell just how far out I need to outset the rect to make sure I'm always just outside the edge of any mitred corner?

You should have a look at the PDF specification (you can easily get hold of it). It explains exactly what it is.


-- Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Calculating accurate bounds of stroked paths
      • From: Graham Cox <email@hidden>
References: 
 >Calculating accurate bounds of stroked paths (From: Graham Cox <email@hidden>)
 >Re: Calculating accurate bounds of stroked paths (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Calculating accurate bounds of stroked paths
  • Next by Date: Re: counting managed objects of a certain type
  • Previous by thread: Re: Calculating accurate bounds of stroked paths
  • Next by thread: Re: Calculating accurate bounds of stroked paths
  • Index(es):
    • Date
    • Thread