Exemplo n.º 1
0
 public static bool UniformDataType(Grasshopper.Kernel.Data.GH_Structure<Grasshopper.Kernel.Types.IGH_Goo> tree, ref String UniformType)
 {
     if (tree.get_FirstItem(true) == null) return false;
     Type t = tree.get_FirstItem(true).GetType();
     foreach (IGH_Goo obj in tree.AllData(false)) {
         if (obj == null) return false;
         if (obj.GetType() != t) return false;
     }
     UniformType = TypeToString(tree.get_FirstItem(true));
     return true;
 }