From the video "Why couldn't early 3D games stack rooms?" (History of FPS, part 3 of 3). Our own teaching model that draws a "map with heights (one floor and one ceiling per square)" and "a set of 3D blocks" in the same way. It is not a re-implementation of Quake as a whole.
What it does: the "map with heights" stores only two numbers per square: the floor height and the ceiling height. The "block map" is a set of boxes placed in space (x, y and z ranges), and you can stack as many as you like in the same place.
Both draw by projecting the four corners of each block face (a rectangle) onto the screen and, pixel by pixel, keeping the nearer face (this is not the actual Quake procedure).
The heights (floor 0, bridge 1.7–2.0, ceiling 3.4) are settings of our own model.
AI was used to make the diagrams and code. No game footage is used. Sources are in the video description.