is within ... polygon shape?

Scott Rossi scott at tactilemedia.com
Fri Jun 24 12:37:56 EDT 2005


Recently, Lynch, Jonathan  wrote:

>> Using the within() function it is possible to accurately detect
>> whether a point falls within the image since Rev will evaluate a
>> point falling within the transparent region of the image as false.

> But - would this work 100% for curved polygons or images?

It works reliably with images as long as the transparent regions of the
image are 100% transparent.  Try it.

Routines for polygons should work reliably as well.

(Although Jim's routine seems to work only for intersecting edges, and not
when a smaller polygon falls *completely* within a larger polygon -- any
tweak available Jim?)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list