How does the offset brep work?

Hello everybody, I trying to get the offset brep to work- via a python component-
and I am still very unexperienced in python- I only know some basics-
can someone explain on how I execute the method https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.brep/createoffsetbrep
inside Grasshopper?
Thanks in advance-
Jimmy

example.gh (9.5 KB)

Wow thanks a lot!
It is so simple and charming!
I love it!

it works in rhino 8- but it seems to fail in rhino 7… is this a limitaion of 7- or python 3 vs ironpython?
or just a typo? hmmm

Try this.

rhino7 for example

import Rhino.Geometry as rg
offsetbrep = rg.Brep.CreateOffsetBrep(brep,10.0,False,False,0.01)[0]

#CreateOffsetBrep(brep: Brep, distance: float, solid: bool, extend: bool, tolerance: float) → (Array[Brep], Array[Brep], Array[Brep])