All is well when working with Rhino.Geometry data types, but creating a list messes everything up:
ListOutputIssue.gh (13.0 KB)
- Same result when using rhinoscriptsyntax.
- It won’t help to change the output data type.
- This happens for most Rhino.Geometry data types, including Point3d, Vector3d, Line, …
- This happens in C#, Python3 and Ironpython2
So I guess it has nothing to do with compilation, but rather with the way Script components handle these data types. The Rhino.Geometry data types don’t get converted to Grasshopper data types, as far as I can tell.
from Rhino.Geometry import Point3d
from Grasshopper.Kernel.Types import GH_Point
a = [GH_Point(Point3d(0, 0, 0)), GH_Point(Point3d(1, 0, 0))]
There is no problem with this one.
@eirannejad