kray at sonsothunder.com
Sun Sep 21 16:33:18 CDT 2008
> Hi gang,
> I am trying to make a repeat structure that deals with an unknown number of
> images located along a given line.
> The line is the diagonal of a currently selected group.
> How can I define that line and does it have to be actually be drawn before
> referring to it?
If you only care about the images within a group that *intersect a line* and
NOT "all the images in the group" then you have a couple of issues to deal
The first is that the "intersect" function uses the object's *bounding box*
to test the intersection, so you could have an image that didn't look like
it was touching the line, but intersect() returned "true".
The second is that if your image doesn't take up the full bounding box of
the image object it's in, you'd also not want to have a "hit" if a blank
area of the image encountered the line.
So you'd have to run a different algorithm that took into account both of
these things; perhaps someone on the list already has this in their "bag o'
tricks" and would be wiling to share?
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode