How can I precisely “erase” frames

Hello developers, I am making a drawing system with triangulation how can I precisely make an erase tool, currently it deletes the whole frame which is not ideal because it deletes much more area then the user selects is there anyway I can do something like the CSG api to ui?

Thanks in advance, any help appreciated

You might be able to make a shape to erase a certain area with a certain size (Different erase sizes) at the mouse’s position, I don’t exactly know how but hypothetically you could.