Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: fast algori...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 11 Topic 669 of 680
Post > Topic >>

Re: fast algorithm for detecting all Intersections of multiple

by IsaacKuo <mechdan@[EMAIL PROTECTED] > Apr 4, 2008 at 07:14 AM

On Apr 4, 4:25=A0am, "Jens Hilwig" <jhil...@[EMAIL PROTECTED]
> wrote:

> Im realy not =A0familar with the different kinds of collision detection.
I=
n my
> case I have a kind of water pipesystem (3D Lines) and I have to check
the
> connections and intersections of the lines. Because its a closed system,
> there are many connections and intersections between the lines.

You mean some sort of static model of water pipes (i.e. not moving)?
The pipes have a certain thickness--you surely have to account for
that, right?

This scenario has a few interesting complications, in that each line
segment will typically share endpoints with at least two other
segments.
Thus, the "special" case where intersections are at the endpoints
is actually the normal case.

Also, in a typical water pipe system, most pipes will be aligned with
a coordinate axis, and will exactly share a coordinate plane with many
other pipes.  This increases the chances of an intersection.

> There are no other elemets than 3D lines, so I think a classic collision
> detection is "too good" for my special problem. =A0Im wrong here ?
> If you know a "simple" collection detection that can handle my problem,
> please let me know.

=46rom what it sounds like, you need reliability and simplicity more
than you need speed.  Personally, I'd go with a dumb O(n^2)
check between each pair of pipes.  That's the easiest to implement
and debug.  You simply check each pipe against each other pipe
with a couple nested FOR loops.  That way, you just need to
debug the collision detection routine; the rest is practically
foolproof.

How many line segments are we talking about, here?  I suspect
performance will not be an issue, compared to simplicity and
reliability.

Isaac Kuo
 




 11 Posts in Topic:
fast algorithm for detecting all Intersections of multiple lines
"Jens Hilwig" &  2008-04-02 12:03:45 
Re: fast algorithm for detecting all Intersections of multiple l
Miss Elaine Eos <Misc@  2008-04-02 15:15:02 
Re: fast algorithm for detecting all Intersections of multiple
IsaacKuo <mechdan@[EMA  2008-04-02 09:25:05 
Re: fast algorithm for detecting all Intersections of multiple
Geoffrey Summerhayes <  2008-04-02 10:50:19 
Re: fast algorithm for detecting all Intersections of multiple
IsaacKuo <mechdan@[EMA  2008-04-02 11:08:11 
Re: fast algorithm for detecting all Intersections of multiple
Geoffrey Summerhayes <  2008-04-02 12:04:50 
Re: fast algorithm for detecting all Intersections of multiple l
John Nagle <nagle@[EMA  2008-04-03 23:33:11 
Re: fast algorithm for detecting all Intersections of multiple l
"Jens Hilwig" &  2008-04-04 09:25:41 
Re: fast algorithm for detecting all Intersections of multiple l
John Nagle <nagle@[EMA  2008-04-09 17:49:22 
Re: fast algorithm for detecting all Intersections of multiple
IsaacKuo <mechdan@[EMA  2008-04-04 07:14:42 
Re: fast algorithm for detecting all Intersections of multiple l
Miss Elaine Eos <Misc@  2008-04-04 14:49:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 8:46:34 CDT 2008.