IEnumerable<T>List.duplicate(deepCop) when Transform?

var list = x.ToList();
    var list2 = new List<Curve>(x);
    var w = new List<Curve>();
    dynamic t ;
    for(int i = 0;i < x.Count;i++){
      t = Rhino.Geometry.Transform.Translation(y);
      x[i].Transform(t);
      w.Add(x[i]);}
    A = w;
    B = list;
    C = list2;


valuLst().gh (6.6 KB)

Hi, when Transform, even if we get the list in a list of another list, all the lists are removed from Value mode? For example, here A, B, C should not be equal? But equal?

var tmp = new List<object>();
    for(int i = 0;i < x.Count;i++)
    {tmp.Add(x[i].Duplicate());}
    var list = x.ToList();
    var list2 = new List<Curve>(x);
    var w = new List<Curve>();
    dynamic t ;
    for(int i = 0;i < x.Count;i++){
      t = Rhino.Geometry.Transform.Translation(y);
      x[i].Transform(t);
      w.Add(x[i]);}
    A = w;
    B = tmp;
    C = list2;

by this the technique is solved, :point_up_2:

but is there another solution to the duplicat (deepCopy) {IEnumerable<T>List(RhinoObject)}?

Now tmp! = W or A! = B;

Hi @Rh-3d-p,

Is this what you want?

test.gh (5.3 KB)

ā€“ Dale

1 Like

yes thank