Constructive Solid Geometry (CSG) engine written in C++