Re: Proceeding apace...
- Posted by Matt Lewis <matthewwalkerlewis at YAHOO.COM> Mar 24, 2000
- 501 views
--- Everett Williams <rett at GVTC.COM> wrote: > > With one caveat...unless I have misunderstood your example, this will only > work for the simple case where there is only one polygon on the surface. > More than one polygon will invalidate the code. > Depends on what you mean. If you are talking about 2 polygons, with no points of intersection, then there shouldn't be any problem, since the code only 'sees' the polygon you pass to it. If you're talking about 'inbedded' polygons (where you might have holes, like a doughnut type shape), then a few simple modifications are all that's needed. Actually, you might just 'wrap' the function when you know that your polygon has holes in it. First check to see if the point is within the outer polygon, and if so, make sure it isn't in any holes. I would think that Jeff's working on the polygon() routine, where he needs to either fill or not fill the polygon supplied to the user, so I doubt that these types of complications will occur. Matt Lewis __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com