Is there a simple way to break this into 2 meshes? I tried getting the indices and vertices and grouping the facets by whether or not they share a common corner but I was not able to make that work.
I think it’s possible that a face has its own 3 vertices that are not shared by other faces, so relying on indices to group faces won’t work. You will need to use the vertex positions instead, and consider that you can group two faces if at least one of their vertex are close enough (each x/y/z coordinates are less than a small epsilon apart).
@flex The approach in this PG is what @JohnK essentially did: applying two times a CSG operation, one to extract the left part and another to extract the right part.