I’ve added a section on showing the processes in Metal for implementing Constructive Solid Geometry on the fly using the algorithms outlined in the paper An improved z-buffer CSG rendering algorithm, with example code uploaded to GitHub.
My goal is to eventually turn this into a CSG library for Metal.
The updated paper (with the additional section) can be downloaded from here: Metal: An Introduction, and updates the paper from my prior post.
And when you put it all together you should get: