How to cut a layer to show the area that just inside a polygon?

This sounds similar to another thread, where I created and example sandcastle that shows one possible approach for only showing/loading the parts of a tileset that are contained in a polygon: How to load only 3dtiles inside the polygon? - #7 by Marco13