views:

540

answers:

9

I am looking for any good sources for geometric algorithms specifically;

The simple stuff like when two lines cross and so on is easy enough (and easy to find), but I would like to find somewhere with algorithms for the more tricky things, such as finding the shape formed by expanding a given polygon by some amount; fast algorithms for shapes with curved sides, etc.

Any good tips? Thanks!

+4  A: 

Computational Geometry Algorithms Library is decent.

sanxiyn
It is, but only for complex algorithms. It's complex itself and its usage for simple things is not recommended.
Lev
+3  A: 

The definitive sourcebook for this is Mathematical Elements for Computer Graphics by Rogers and Adams

http://www.nar-associates.com/nar-publishing/mecg2nd.htm

Cruachan
Is "Procedural Elements of Computer Graphics" basically the same book, updated, or is it different? Which is better from an algorithms point of view?
Joel in Gö
OK, I have now seen that this is a different book, apparently less algorithmic.
Joel in Gö
+1  A: 

I've gotten good use from the generically named Computer Graphics, C Version by Hearn and Baker.

ryan_s
+3  A: 

I enjoy Dave Eberly's website, especially some of his PDFs.

For curved surfaces, there's a pretty good free textbook here, that covers beziers, nurbs and subdivision surfaces.

tfinniga
+2  A: 

computational geometry in c is a great book, i learnt a lot from it

matpalm
+3  A: 

"Computational Geometry: Algorithms and Applications" by Mark de Berg, Otfried Cheong, Marc van Kreveld, and Mark Overmars is an excellent introductory computational geometry textbook. It is known as "the four-Marks book" even though only three of the four authors are named Mark or Marc.

Vebjorn Ljosa
+1  A: 

If you are interested in something realy complex, try searching it on a http://citeseer.ist.psu.edu/ It's a scientific digital library, and the computational geometry is well presented there. I used it a lot while implementing shadows in a 3D.

akalenuk
A: 

In the end, I did find exactly what I was looking for: Real-Time Collision Detection by Christer Ericson. This is wonderful, and I recommend it strongly. Not so much on curved sides etc, but for the essential stuff on how to actually program geometrical hit testing and so on properly, it seems hard to beat.

Joel in Gö
A: 

A very nice source of inspiration is Paul Bourke.
http://local.wasp.uwa.edu.au/~pbourke/

straight to his geometry stuff : http://local.wasp.uwa.edu.au/~pbourke/geometry/

You might want to wander around on his site a bit, there's tons of nice stuff !

Led