algorithmic modeling for Rhino
hello all,
I need to convert from GH_Mesh to Rhino.Geometry Mesh
with no success, any clue?
thanks in advance
c.
Im trying this:
GH_Structure<Grasshopper.Kernel.Types.GH_Mesh> datatreeMeshing = null;
if (!DA.GetDataTree(0, out datatreeMeshing)) { return; }
List<Grasshopper.Kernel.Types.GH_Mesh> meshlist = datatreeMeshing.FlattenData();
foreach(Grasshopper.Kernel.Types.GH_Mesh ghMesh in meshlist)
{
  if (ghM.IsValid)
   {
    Mesh m = new Mesh();
     ghMesh.CastFrom(m); //fails here in the Castform...
}
}
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
    © 2025               Created by Scott Davidson.             
    Powered by
    