2

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.

Bart
  • 19,692
  • 7
  • 68
  • 77
user812926
  • 21
  • 2

1 Answers1

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