Hat chops in WebGL?

Today I learned a new phrase!
@Evgeni_Popov did a pretty cool trick to clip a mesh that I think could work here? Clip parts of mesh inside a box - Questions - Babylon.js (babylonjs.com)