We migrate our project from Rhino5 to Rhino7 and now sometimes it happens that Rhino SDK function ON_Curve::IntersectCurve gets stuck in an infinite loop and we have to turn off the Rhino via Task Manager. The curves that I intersect are generated by the project and are valid. Also I tried different tolerances, but the same.
When I draw the curves with function RhinoApp().ActiveDoc()->AddCurveObject and intersect them with the same function, it is ok.
Has the same thing happened to anyone?
Through some tests, I realized that ON_Curve::IntersectCurve gets stuck in an infinite loop when I try to intersect curves with different dimensions. But still, the function should not enter an infinite loop in this case.
I am sending you simple code from my test command.