Re: mathematical area of closed vector path
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