private string TextureName(bool b, Rhino.DocObjects.RhinoObject myGeo)
        {
            //string tex = "No Texture";

            if ((b) && Rhino.RhinoDoc.ActiveDoc.RenderTextures.Count > 0)
            {
                Rhino.Render.RenderMaterial myGeoRendMat = myGeo.GetRenderMaterial(true);
                Rhino.Render.TextureMapping texMapping   = myGeo.GetTextureMapping(1);
                Rhino.Render.Fields.Field   fields       = myGeoRendMat.Fields.GetField(myGeoRendMat.Name);
                string tex = fields.Name;



                //Rhino.Render.RenderTexture renderTexture = myGeoRendMat.TextureChildSlotName

                return(tex);
            }

            else
            {
                return("No Texture");
            }
        }