How to get intersecting geometry of two mesh geometries

Hi folks,

I’m quite new to Three.js and I am trying to figure out how to get the intersecting surface of two geometries (meshes). In my case, in the field of architecture, I am interested in getting the intersections of a building element (its mesh geometry) with the space boundary of a room (basically just a big box).

I have the mesh geometries from both and with the package three-csg-ts (three-csg-ts - npm) , I can get the intersecting geometry, so the part of the building element, that is in the room.

Now I am interested in getting the intersecting surface (surface S in picture below).

Is there anyone who can help me how I can do that?

There is a solution in the
Collection of examples from discourse.threejs.org ,
but it was created for the now obsolete Geometry. You have to adapt it.

PointsGroupingCutPlane

See also
THREE.Geometry will be removed from core with r125