Ray Tracing and CSG [C++]

Ray Tracing and CSG [C++]

Ray tracing is a method of « drawing » a 3D scene that provides good quality results, but not very efficiently.

In order to reduce the computing time, we can use a Constructive Solid Geometry (CSG).

ghost pyramids operations

More Details : 

The CSG is implemented in the form of a binary tree:
– whose nodes are binary operators — union, intersection, substraction–, or geometric transformations — translation,rotation,scale.
– leaves are primitives — sphere, cube / box ,cylinder…