I am trying to leverage the ConvexHull function contained within Grasshopper.Kernel.Geometry.
From some other posts, I see that I first need to call Node2List and then feed that into ConvexHull.Solver.ComputeHull().
However, when I feed my list of points into Node2List, I run into this error:
Runtime error (ArgumentTypeException): Multiple targets could match: Node2List(IEnumerable[Node2]), Node2List(IEnumerable[GH_Point]), Node2List(IEnumerable[Point3d])
I’ve done some research and have realized that this is a common issue inherent to IronPython that will crop up from time to time. I have zero knowledge of C#, unfortunately, so I am not able to work around this obstacle.
Referencing other related posts, I thought transitioning syntax from:
Another question if you have the time - do you know how to use the ConvexHull function to output the hull that corresponds to the actual points (in their plane), instead of the projection of the hull onto XY Plane? Thank you in advance.
James
Edit: I was able to recognize the commonality between x and y coordinates of the original points versus the hull points on the XY plane, so I have a workaround, but if you know of a way to directly obtain the correct polyline, I’d appreciate it!