RhinoCommon Patch fails to meet tolerance

I’m struggling to figure out how to make a decent patch in RhinoCommon. When I use the exact same inputs for the RhinoCommon Patch function and the Rhino Patch command, the RhinoCommon does much worse.

The command is able to match tangency to a high degree, the function is not.
The command is able to match position to a decent degree, the function does much worse.
Cranking up the tolerance of the function does not help.

I’ve heard it said that RhinoCommon Patch uses entirely different code that the Patch command. Why is this? It seems like it is causing many people problems. Is there anything that I can do to better match tangency and position?

My pseudo code is as follows:
CreatePatch({ BrepEdge, NurbsCurve, NurbsCurve },null, 10, 10, true, true, 1, 1, 1, {false, false, false, false}, 0.001);

I have considered trying to use RunScript(). But that makes it difficult to capture the resulting surface? Also, runscript doesn’t have any docs on how to actually form a script?

If anyone can help, that would be great.

1 Like

There is a logged issue to fix this.

https://mcneel.myjetbrains.com/youtrack/issue/RH-75169

– Dale

1 Like