Analytical CSG (Constructive Solid Geometry) library