I'm working a project in which I have to perform ray casting and use CSG trees. But I don't know how to use the CSG trees or implement it for this project. I can do the ray cast and give the final answer. My problem is really how to implement the tree and link it.
Asked
Active
Viewed 831 times
2
-
1Did you mean CSG? (Constructive Solid Geometry?) – Adrian McCarthy Jun 23 '11 at 20:03
-
Yep, my bad.. I mean CSG (Constructive Solid Geometry) yes. – user812926 Jun 23 '11 at 20:45
1 Answers
0
The following PhD thesis details various CSG rendering techniques in OpenGL. Part of the thesis illustrates how CSG trees are constructed and simplified. A program (with full C++ source code) demonstrates the various algorithms mentioned in the thesis and will also give you an implementation of a CSG tree.

Dave Maff
- 798
- 8
- 12