Re: mathematical area of closed vector path
Re: mathematical area of closed vector path
- Subject: Re: mathematical area of closed vector path
- From: David Phillip Oster <email@hidden>
- Date: Mon, 24 Jan 2005 20:40:58 -0800
At 8:03 PM -0800 1/24/05, "P. George" <email@hidden> wrote:
How would one go about figuring out the mathematical area (xxx units
squared) of a closed vector path?
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).
- Philip
I use the GLU Tesslator (part of the OpenGL GLU library) to decompose
the complex path into a series of triangles. Once you've got
triangles, the area is trivial. Of course, this isn't as
mathematically accurate as handling the curves directly, without a
polygonal approximation.
_______________________________________________
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