Creating LSCM texture maps in Rhino API

Hi all,

I am trying to create a grasshopper python component script to do the following:

  1. take an input mesh
  2. create a least squares conformal texture mapping for it
  3. store the coordinates in texture coordinate space for the mesh
  4. output the texture coordinates as point3d objects

Ive been experimenting using the r.geometry.meshunwrapper class but I am having some trouble figuring it out. Anyone have any ideas how to accomplish the above?

Thanks !