Remove disjoint mesh and corresponding part of rendermaterial in C#

Hi All,

What is the correct way to remove a part of rendermaterial when cutting of disjointmeshparts in c# rhinocommon?

As you can see in the image there are disjoint parts. I want to be able to remove these parts or any other part of the mesh and corresponding part of the rendermaterial.

Splitting disjointmeshes is easy but then I dont know how to proceed.

Kind regards Reinder