New algorithm for the rendering of CSG scenes