[C++] RhinoSdkBlend::SurfaceBlend gives inaccurate results

I’m trying to get a blend between two BRep edges. I’m using the RhinoSdkBlend::SurfaceBlend function and it gives a blend, but the blend is not G2-continuous even though I gave continuity values of 2. Even worse, the edges do not match and the result cannot be joined into a polysurface.

Now, when I use the same input in the BlendSrf command, the result is G2 continuous and is matched correctly to the edges.

How to replicate the same results from C++?

Hi Menno,

This is known:

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

Can you post some geometry that isn’t working for you? I want to add it to the YouTrack item.

– Dale

I’m doing this in RH5 SR12. Will post geometry tomorrow.

See attached, layer names should explain it all.

simple fillet.3dm (153.4 KB)

Got it, thanks.

I see this issue is fixed in Rhino 6, but what about Rhino 5? Will it be fixed there or only in Rhino 6?

We are no longer making fixes to Rhino 5.

– Dale

It’s not fixed in Rhino 6 either.