Split Mesh or Brep using RhinoCommon

Hi,

What would the workflow using RhinoCommon - C# to perform brep or mesh split operations?

I would like to perform such operation below.

Hi @Petras,

For Breps, use Brep.Split.

For meshes, use Mesh.Split.

– Dale

Thank you:)