Surface Texture Mapping

Hello,
I am trying to create a texture mapping for a mesh with unknown shape. I have found in rhinocommon CreatePlaneMapping, CreateSphereMapping, CreateBoxMapping and CreateCylinderMapping but I see that the default mapping in Rhino GUI is “Surface”. Does anybody know how to emulate such mapping?
Thanks,
Gennaro

@andy, @nathanletwory - is this something you could help with?

If the goal is to get a mesh out with texture coordinates based on surface mapping you don’t have to explicitly create one. Just get the render mesh for your object, it should have texture coordinates on it as well.

Does that help?