is within ... polygon shape?

2005-06-24 Thread Steve Bonham
Can you use "is within" statements to evaluate if an object is within the confines of an irregular shape?? If so - point me in the right direction? Thx, S -- -- Steve Bonham Director, Faculty Techn

Re: is within ... polygon shape?

2005-06-24 Thread Steve Bonham
Answered my own question- I found the "intersect" function and it works (see below) if intersect(graphic "ball", graphic "sand1") then put "in the bunker" into YourLie end if HOWEVER... There are many, many objects that the ball object may intersect with... Is it possible to use

Re: is within ... polygon shape?

2005-06-24 Thread Eric Chatonet
Hi Steve, Should be fine indeed... AFAIK yo have to run a loop. I don't know how is your interface but you could have some invisible graphics to test a larger zone before a long loop. A kind of graphic's indexation... to speed up the process if needed :-) Le 24 juin 05 à 15:53, Steve Bonham

Re: is within ... polygon shape?

2005-06-24 Thread Steve Bonham
h- Intersect doesn't work after all. It appears that one object will intersect with another irregular object's rect and NOT the objects true shape (polygon points). See illustration... at: http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg Is there a way to get Rev to: 1

Re: is within ... polygon shape?

2005-06-24 Thread Eric Chatonet
Re Steve, Another funny approach: function WhichObject pLoc,pObj local tCurLoc, tColor - put the screenMouseLoc into tCurLoc lock screen hide pObj set the screenMouseloc to globalLoc(pLoc) put the mouseColor into tColor set the screenMouseloc to tCurLoc show pObj unlock s

Re: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Steve Bonham wrote: > Intersect doesn't work after all. It appears that one object will > intersect with another irregular object's rect and NOT the objects > true shape (polygon points). > See illustration... at: > http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg > > Is th

Re: is within ... polygon shape?

2005-06-24 Thread Steve Bonham
Eric, Wow! Now THAT is an ingenious approach!!! :-) and it might be just the solution needed. I'll give it a shot. S Re Steve, Another funny approach: function WhichObject pLoc,pObj local tCurLoc, tColor - put the screenMouseLoc into tCurLoc lock screen hide pObj set the s

RE: is within ... polygon shape?

2005-06-24 Thread MisterX
ailto:[EMAIL PROTECTED] On Behalf Of > Steve Bonham > Sent: Friday, June 24, 2005 16:31 > To: How to use Revolution > Subject: Re: is within ... polygon shape? > > h- > > Intersect doesn't work after all. It appears that one object > will intersect wit

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bonham Sent: Friday, June 24, 2005 10:55 AM To: How to use Revolution Subject: Re: is within ... polygon shape? Eric, Wow! Now THAT is an ingenious approach!!! :-) and it might be just the solution needed. I'll give it a shot. S

RE: is within ... polygon shape?

2005-06-24 Thread MisterX
if it's all white, then what? ;) nothing beats mathematics ;) cheers 1/X > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Steve Bonham > Sent: Friday, June 24, 2005 16:55 > To: How to use Revolution > Subject: Re: i

Re: is within ... polygon shape?

2005-06-24 Thread Eric Chatonet
Let your computer and go a walk at a golf :-) Le 24 juin 05 à 17:08, MisterX a écrit : if it's all white, then what? ;) nothing beats mathematics ;) Best Regards from Paris, Eric Chatonet. So Smart Software For institutions, c

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
: 'How to use Revolution' Subject: RE: is within ... polygon shape? if it's all white, then what? ;) nothing beats mathematics ;) cheers 1/X > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Steve Bonham > Sent: Fr

Re: is within ... polygon shape?

2005-06-24 Thread Jim Hurley
Message: 15 Date: Fri, 24 Jun 2005 07:53:22 -0700 From: Scott Rossi <[EMAIL PROTECTED]> Subject: Re: is within ... polygon shape? To: How to use Revolution Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="US-ASCII" Recently, Steve Bonham wrote:

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
11:44 AM To: use-revolution@lists.runrev.com Subject: Re: is within ... polygon shape? > >Message: 15 >Date: Fri, 24 Jun 2005 07:53:22 -0700 >From: Scott Rossi <[EMAIL PROTECTED]> >Subject: Re: is within ... polygon shape? >To: How to use Revolution >Message-ID: <[E

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
ct: RE: is within ... polygon shape? This is pretty cool! But - would this work 100% for curved polygons or images? The docs do not mention points for images. Either, this is a very cool way of testing. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
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

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Scott Rossi Sent: Friday, June 24, 2005 12:38 PM To: How to use Revolution Subject: Re: is within ... polygon shape? Recently, Lynch, Jonathan wrote: >> Using the within() function it is possible to accurately detect >> whether a point falls within the image since Rev will e

Re: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Lynch, Jonathan wrote: > Put the points of image "myImage1" into field "feedback" > > Causes an error - it says this object does not have this property. I am > misunderstanding something aren't I? Images don't have points. You simply test the point against the image itself: if with

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Revolution Subject: Re: is within ... polygon shape? Recently, Lynch, Jonathan wrote: > Put the points of image "myImage1" into field "feedback" > > Causes an error - it says this object does not have this property. I am > misunderstanding something aren't I?

Re: is within ... polygon shape?

2005-06-24 Thread Jim Hurley
Message: 7 Date: Fri, 24 Jun 2005 09:37:56 -0700 From: Scott Rossi <[EMAIL PROTECTED]> Subject: Re: is within ... polygon shape? To: How to use Revolution Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="US-ASCII" Recently, Lynch, Jonathan wrot

Re: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Lynch, Jonathan wrote: >>> Put the points of image "myImage1" into field "feedback" >>> Causes an error - it says this object does not have this property. I >>> am misunderstanding something aren't I? >> Images don't have points. You simply test the point against the image >> itself:

Re: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Jim Hurley wrote: > I don't understand what you mean when you say it fails with large polygons. > > In the stack below, it doesn't seem to make any difference how large > the polygons are. I can't image why Rev would fail to recognize when > a point is within a polygon. > > go stack u

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Rossi Sent: Friday, June 24, 2005 1:16 PM To: How to use Revolution Subject: Re: is within ... polygon shape? Recently, Lynch, Jonathan wrote: >>> Put the points of image "myImage1" into field "feedback" >&

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
within ... polygon shape? Recently, Jim Hurley wrote: > I don't understand what you mean when you say it fails with large polygons. > > In the stack below, it doesn't seem to make any difference how large > the polygons are. I can't image why Rev would fail to recognize

Re: is within ... polygon shape?

2005-06-24 Thread Judy Perry
bummer... I was hoping that you'd found a solution to my need for the sort of irregularly-shaped buttons that an old HC external provided. Drats! Judy On Fri, 24 Jun 2005, Steve Bonham wrote: > h- > > Intersect doesn't work after all. It appears that one object will > intersect with anothe

RE: is within ... polygon shape?

2005-06-24 Thread Judy Perry
Yup, that's what somebody told me when I asked about it privately some months ago: "You need to read a book on algorithms"... Gave up. Judy On Fri, 24 Jun 2005, MisterX wrote: > you need a real algotithm. ___ use-revolution mailing list use-revolut

Re: is within ... polygon shape?

2005-06-24 Thread Jon
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Rossi Sent: Friday, June 24, 2005 1:23 PM To: How to use Revolution Subject: Re: is within ... polygon shape? Recently, Jim Hurley wrote: I don't understand what you mean when you say it fails with large polygons. In

RE: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Indeed you are correct - and I am a copy editor! How embarrassing. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: Friday, June 24, 2005 3:07 PM To: How to use Revolution Subject: Re: is within ... polygon shape? Way off topic. I think it is

Re: is within ... polygon shape?

2005-06-24 Thread Jim Hurley
Message: 12 Date: Fri, 24 Jun 2005 10:49:17 -0700 (PDT) From: Judy Perry <[EMAIL PROTECTED]> Subject: Re: is within ... polygon shape? To: How to use Revolution Message-ID: <[EMAIL PROTECTED]> Content-Type: TEXT/PLAIN; charset=US-ASCII bummer... I was hoping that y

Re: is within ... polygon shape?

2005-06-24 Thread Judy Perry
gt; > >Message: 12 > >Date: Fri, 24 Jun 2005 10:49:17 -0700 (PDT) > >From: Judy Perry <[EMAIL PROTECTED]> > >Subject: Re: is within ... polygon shape? > >To: How to use Revolution > >Message-ID: > > <[EMAIL PROTECTED]> > >Content-Type

Re: is within ... polygon shape?

2005-06-24 Thread Cubist
It occurs to me that even tho the "intersect" function works with the bounding rectangle of an object, and not the actual object itself, "intersect" could nonetheless be useful as a sort of initial screen. If "intersect" doesn't think the two objects intersect, well, they *can't* intersect, r

Re: is within ... polygon shape?

2005-06-24 Thread Alex Tweedly
Jim Hurley wrote: Take a look at: go stack url "http://home.infostations.net/jhurley/CollidingPolygons.rev"; Sorry, Jim, but that doesn't work for all polygons. For example (excuse the ascii drawing ) 1 1 1 1 1 222 2

Re: is within ... polygon shape?

2005-06-26 Thread Jim Hurley
Message: 15 Date: Sat, 25 Jun 2005 00:10:18 +0100 From: Alex Tweedly <[EMAIL PROTECTED]> Subject: Re: is within ... polygon shape? To: How to use Revolution Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Jim Hurley wrote: Take a l

Re: is within ... polygon shape?

2005-06-26 Thread Alex Tweedly
Jim Hurley wrote: Alex, Your ascii figures didn't translate very well in my email app. Sorry. The first figure was (as I think you guessed) a "+" with one shape being the upright and the other being the cross-bar - so neither has vertices within the other shape. But I think I understand t