Dale,
Some things I encountered with Brep.CreateBlendSurface. (I’m working in Rhino 6.) First, the Blend didn’t match the input surface. The green blend shown here was intended to match the indigo surface, but missed it by 0.007mm at the leading edge. Funny, though, setting the drawing tolerances closer had no effect, but scaling everything up by a factor of 100 in code to use the Brep.CreateBlendSurface method, then scaling everything down to insert it into the document did fix this error. Notice also the waviness along the edge where it does, at first glance, seem to match.
For comparison, here’s the result of the interactive “Blend Surface” command overlaid in light green. I used the defaults on the Blend Surface command except I selected the “Same Height” checkbox.
Here’s the other end of the Brep.CreateBlendSurface shown initially. Note that the surface edges are in no way aligned with the surface edges of the input surface.
Again, overlaying the results of the interactive Blend Surface command which yields the results I had expected of the Brep.CreateBlendSurface method.
At this point I must mention my disappointment that the “Same Height” modifier is not available programmatically in the Brep.CreateBlendSurface method, giving the two surfaces such great difference in this region of my model. However, the surface edges resulting from the Blend Surface command have clearly retained the direction of the surface edges of the input surface whereas the Brep.CreateBlendSurface method has not.
Viewing the same area from a different angle shows that the Brep.CreateBlendSurface has gone off on its own a bit with regard to the surface edges. They seem to veer too far to the left in the image below before bending back to join the lower surface.
Contrast that again with the Blend Surface command which takes a less circuitous path:
Selecting each surface in turn to highlight the isocurves reveals that it is not just the edge curves that are skewed on the Brep.CreateBlendSurface surface. The “shoulders” or “bulge” of the part is distinctly larger for the Brep.CreateBlendSurface surface than for the Blend Surface surface.
Looking closely, you’ll also notice that the isocurves for the Brep.CreateBlendSurface surface are everywhere skewed and not aligned in the direction of the input surface isocurves. While maintaining tangency with the input surface in the plane perpendicular to that surface at the isocurve endpoints, the direction of the isocurves is not tangent to the input isocurves in-plane, whereas the Blend Surface surface isocurves are much more well-behaved.
In order to try to understand the nature of the problem with the Brep.CreateBlendSurface method, I generated a series of Brep.CreateBlendShape curves which promised to have similar characteristics to what I was seeing with Brep.CreateBlendSurface. Interestingly, the only Brep.CreateBlendShape curve that matched the Brep.CreateBlendSurface surface was the edge curve of the Brep.CreateBlendSurface surface. Except for those two curve, all of the Brep.CreateBlendSurface surface’s isocurves deviated significantly from the Brep.CreateBlendShape curves. I’ve illustrated that with the two images below in which I extracted more than the default number of isocurves from the Brep.CreateBlendSurface surface (shown in black) to contrast with the Brep.CreateBlendShape curves shown in orange.
First, with the original green surface to show that the Brep.CreateBlendShape curves are, indeed, a fairly good approximation of what the Brep.CreateBlendSurface produces:
And again without the surface in order to more clearly show the substantial deviation of the isocurves.
I have much more to say on this topic but, sadly, I have spent far too much time on it already. I hope I’ve given you something to work on. I don’t know what the intent was of including the Brep.CreateBlendSurface method but I took it to be a programmatic version of the Blend Surface interactive command. If that was the case, it has not produced acceptable results; if it is, indeed, producing the intended result then I cannot fathom the intent, the implementation, or the topology.
Thanks for taking the time to look at this.