Trim (original) face/surface with modified brep, to get new trimmed face

trim.gh (10.1 KB)

I can’t seem to get this right, but maybe some of you have the answer. I have my orginial face that was used to create a brep by offsetting the face. After numerous boolean operations, the brep has in some cases been trimmed from the orignal face shape. The face is the surface in the center of the brep. What I want is basically to trim the original face based on the new shape of the brep, so I have a new face that I can use creatoffsetfromface on, if that makes sense. I just want the section in the middle of the brep really, but it need to work not only for planar faces. In the file there is two examples, one planar that has been trimmed from the original, and one cylindrical. Anyone, that has an elegant solution to this?

edit: seems like this may work:

Not really, no.

And your GH file doesn’t match your image.

I edited the post, so the gh file is just the geometries. The picture shows what I found after that may seem to work, and the picture from rhino is the offset of the result from grasshopper.


i think that is what you are after

trim.gh (10.1 KB)

@dfytz1 I think you are right, seems to work for both the examples at least. Just the simple solution I was looking for, awesome! Thank you :slight_smile: