• 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: mathematical area of closed vector path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mathematical area of closed vector path


  • Subject: Re: mathematical area of closed vector path
  • From: Marcel Weiher <email@hidden>
  • Date: Tue, 25 Jan 2005 15:17:19 +0000


How would one go about figuring out the mathematical area (xxx units squared) of a closed vector path?


Does it have to be mathematical? How much precision do you need?

Note: These paths will not be simple little boxes or circles. Think complex paths--composed of mulitple line segments and arc segments (both convex and concave).

Here's a really awful brute force method:

1. let Quartz (or other graphics API) render your path at (pretty) high resolution
2. count bits


In fact, with Quartz doing partial-coverage, you might even be able to get away with a bit less resolution..

Marcel

--
Marcel Weiher                Metaobject Software Technologies
email@hidden        www.metaobject.com
Metaprogramming for the Graphic Arts.   HOM, IDEAs, MetaAd etc.
        1d480c25f397c4786386135f8e8938e4


_______________________________________________ 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
  • Follow-Ups:
    • Re: mathematical area of closed vector path
      • From: "P. George" <email@hidden>
References: 
 >mathematical area of closed vector path (From: "P. George" <email@hidden>)

  • Prev by Date: Re: NSMenuItem +separatorItem. Separator showing a line programatically.
  • Next by Date: Re: NSImage, OpenGL, and color spaces
  • Previous by thread: Re: mathematical area of closed vector path
  • Next by thread: Re: mathematical area of closed vector path
  • Index(es):
    • Date
    • Thread