I am currently trying to use OpenNest for Grasshopper in my Rhino.Compute workflow but I am facing an error that I suspect to be a backend issue.
Error message:
"System.NullReferenceException: Object reference not set to an instance of an object.\r\n at OpenNestLib.OpenNestUtil.ToPolyline(Curve curve, Boolean collapseShortSegments)\r\n at OpenNestLib.OpenNestUtil.ToPolylines(IEnumerable`1 nurbsCurves, Boolean collapseShortSegments)\r\n at OpenNest.OpenNestFullComponentCleanUp.SolveInstance(IGH_DataAccess DA): component \"OpenNest\" (29e017d9-7a67-48ca-b1c7-35b7b9c10f30)"
I am quite certain of the following:
The problem does not lie in the grasshopper plugin. There is no problems when I open the .ghx file in Grasshopper. (See screenshot of GH code)
There is no problem with my Rhino.Compute syntax. This is because I have a working version by using PackRat (but I really prefer using your algorithm).
Thank you for the suggestion. However, converting curves to polyline in GH resulted in the same issue. (Works in Grasshopper, but shows same error message when used in Rhino Compute)
I have uploaded the python and ghx file in the link below. They include tests for OpenNest and Packrat.
Hi @Jing_Zhi_Tay , I have the same problem when trying to nest curves or surfaces using OpenNest with Rhino.Compute server, was wondering did you manageto find a solution for it, Thank you!