Split in grasshopper

Hello can anyone help me pls. Im trying to recreate this for my homework but idk how to do it in grasshopper

The circle need to be in the exact lines from the polygon and can be placed randomly in any lines but still align with the polysurface

Here’s the grasshopper file. I hope anyone can understand what i wanted to create here. Thank you

5925.gh (16.8 KB)

Does this look correct?
5925.gh (39.5 KB)


You can trim first, then extrude.