I am facing a problem when using the C# component in Grasshopper and I can’t seam to figure out what I am doing wrong, except that there is something fuzzy going on with the data types.
I input a tree of points in the component. When I print out the DataType of one entry in the tree, like so:
which is expected. So far so good.
However, when I try to add this point into another list, like so:
List<Point3d> tempList = new List<Point3d>; tempList.Add(iTree.Branch(path));
it gives me the following error message:
Converting "object" to "Rhino.Geometry.Point3d" not possible
and I don’t understand why my point is suddenly an “object” and not a “Point3d” anymore…
It would be great if someone could try to clarify this for me, because I have the feeling that the code is not the problem rather that I am missing something regarding data types.