How to bake using the C# Grasshopper API?

Hello,
I’m developing a plugin and I would like to automatically bake geometry generated by Grasshopper so it can be sent to a Unity application.

Sadly I can’t figure out how to use GH_BakeUtilityBakeObjects correctly.

The documentation is not helpful and if someone could provide an example or help in any other way I would greatly appreciate it.

https://developer.rhino3d.com/api/grasshopper/html/M_Grasshopper_Kernel_GH_BakeUtility_BakeObjects.htm

A generic simple case here

1 Like

Thanks.