ShapeInBrep in RhinoCommon

Hi there,
is there any chance that the Grasshopper component “ShapeInBrep” exists in RhinoCommon?
So far I have only been working with Brep.IsPointInside, which is great, but for a project I’d need the chance to check if a brep is inside a brep.

Of course I have an idea how to code that, but maybe I can save that effort to myself.

Thanks a lot,
T.

This should do it
relatively concise syntactically.

@Will_Wang thanks.
This only would allow me to invoke the function in my code, right?
But it would not allow me to use this in a code not using grasshopper at all, right?

Try it. I don’t think grasshopper must launch for it to run.