home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics:12104 triangle.graphics:23 comp.lang.c++:16587 alt.graphics:417
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!wupost!darwin.sura.net!uvaarpa!concert!borg!rameau!bergman
- From: bergman@rameau.cs.unc.edu (Larry Bergman)
- Newsgroups: comp.graphics,triangle.graphics,comp.lang.c++,alt.graphics
- Subject: spatial search code sought
- Message-ID: <17750@borg.cs.unc.edu>
- Date: 19 Nov 92 20:32:55 GMT
- Sender: news@cs.unc.edu
- Followup-To: poster
- Lines: 34
-
- I'm looking for some public-domain C or C++ code to do
- spatial searches. More specifically, I have a set of 3-D
- points to be checked against a position. I want to determine
- if any of the points are within a specified radius of the
- position, and if so, return either the list of those within
- range or ANY single point within range (either one will do).
- I'm going to do this repeatedly with the same points (but
- different locations); I'm willing to pay for some preprocessing
- to get rapid search (I need to do this search very quickly)
- so some sort of spatial subdivision algorithm might be
- appropriate. Note that this is essentially a collision
- detection or 3-D picking problem.
-
- I want to find running,tested code (I know some of the
- appropriate algorithms and where to go to find others - what
- I need is an implementation). Ideally, I'd like a set of
- C++ classes (or C functions) that includes methods such as:
-
- - add a point to the search list (updating search datastructure)
- - delete a point from the search list
- - perform a search, returning hit list (or single hit)
- - copy the search structure
-
- If you have fairly clean, easy-to-use, documented code (isn't it
- all?) that you'd be willing to pass along, I'd be deeply in your
- debt.
-
- Thanks,
-
- Larry Bergman
- bergman@cs.unc.edu
- --
-
-
-