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
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
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
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 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
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
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
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
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
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
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
: '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
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:
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
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
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
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
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
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?
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
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:
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
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"
>&
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
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
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
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
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
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
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
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
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
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
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
34 matches
Mail list logo