Extrude surface using C#


I am trying to extrude a surface using a C# script. I’ve created a breb surface but can’t find a way to add a thickness in order to create a tile like element similar to the one below. The component has to be made in C# - what is the best way to do this?

ExtrudeSurface.gh (10.7 KB)

Thanks in advance!

Kind regards

This method should work

Thank you very much!