MFn::createMesh assign initial shading group to the resulting Mesh

Hi,

getting stuck at assigning the initial shading group to a new mesh i created via MFN::createMesh c++ api. anyone have a code snippet for this?

thanks