Texture mapping and XYZ Size in grasshopper

hi everyone is there way or plugin or ApI in c# sdk for change Texture mapping and XYZ Size in grasshopper like Rhino for Custom Preview Component(by Rhino Material) for grasshopper Geometry



@mahdiyar
I USE mesh.render method but not successful

  private void RunScript(Brep brep, List<Mesh> tile, ref object Breps)
  {
    foreach(Rhino.Geometry.BrepFace f in brep.Faces)
      f.SetMesh(MeshType.Render, tile[brep.Faces.ToList().IndexOf(f)]);
    Breps = brep;
  }

XYZ TILE TEXTURE IN GRASSHOPPER.gh (12.6 KB)

1 Like

Ok yes thanks @Mahdiyar
but in for c# api i find this api bu not sure use for this purposes code . How do you think about this Api?
https://developer.rhino3d.com/api/rhinocommon/rhino.render.texturemode
And

https://developer.rhino3d.com/api/rhinocommon/rhino.render.texturemapping#methods
And
https://developer.rhino3d.com/api/rhinocommon/rhino.render.texturemapping/trygetmappingbox

1 Like