I am practicing with C# scripting:
What I want to do is to store some branches (which are list of points) inside a List of List
but I get error saying:
- Unable to cast object of type ‘System.Collections.Generic.List
1[System.Object]' to type 'System.Collections.Generic.List1[Rhino.Geometry.Point3d]’. (line: 69)
List seriesPts = new List ();
for (int i = 1; i < x.BranchCount - 1; i++)
for (int i = 0; i < seriesPts.Count; i += 2)
List <Point3d> tempA = (List <Point3d>) (seriesPts[i]); // line 69 error here List <Point3d> tempB = (List <Point3d>) (seriesPts[i + 1]); List <object> tempCrv = new List <object>(); int index = 0; }
How can I make it?
Thanks in advance.