The new “Patch” tool is great, but sometimes it generates strange shapes. I thought that it would be nice if we keep posting 3dm files consisting such cases, so that the developers could take a look and fix the bugs.
I start with this airplane wing shape where “Patch” failed to produce the expected smooth shape when G2 is set to all target edges. Note that it also leaves a gap that should not be there.
OK, got it. As you see, I did provide a 3dm file above, and the resulting faulty patch surface is History-enabled to be further edited and tested by the developers.
@Rhino_Bulgaria
I could not repeat your rhino-horn-like surface.
are you using an uptodate Rhino 9 Beta ?
if i play around with the surface - what i get is super dense and looks like this (not convincing)
(maybe a similar screenshot of your parameters is helpful)
Hi, Tom! I’m aware that I can use helper surfaces, but the goal is to make the “Patch” tool smart enough to complete these tasks properly with an intermediate curve instead. Just like how “xNurbs” can handle similar cases.
I use Rhino 9 BETA (9.0.26286.6303, 13.10.2026 г.), but now I checked that there is a new build, so I will try the same 3d model and see how the “Patch” tool will behave with it.
After installing the latest BETA, here is what happens when I use either option, “Projected” and “Molded”, with degree 3:
The minimum amount of spans that achieves G0 and G1 (but still not G2) is 26 by 30. Strangely, 30 by 30 fails to achieve G1. Even then, there is still a noticeable distortion close to the vertical edge.
I end up filling that hole with the “Blend studio” plug-in, because “Patch” didn’t work smoothly with this particular shape. But I do hope that it will get better optimized in the future. It worked flawlessly in 90% of the cases that I tried so far.
@Rhino_Bulgaria thanks for this one, I see it is challenging. I think it is unavoidable to do this in multiple steps, similar to the way it was done in this blend studio: try to work in multiple untrimmed surfaces, then handle the smaller 3-edge corners either with a trimmed patch, or by trimming the previous results so that another untrimmed patch can be made.
I’d love to see an acceptable result where this is done in one go with just the edges at G2 and the single internal guide curve.
I have created this ticket for Patch to keep track of this case RH-99794.
Hi, @menno ! I actually used “Patch” to fill the 3-side holes at the top and bottom (after creating the large blend surfaces either with Rhino’s “Blend surface” or the “Blend studio” plug-in), however, the resulting patch surfaces still had some slight waviness, so I end up splitting the blend surfaces to open 4-sided holes.
When I merge the two blends at the tip (the upper and lower ones), so that the hole to fill consists just two edges, “Patch” produces far smoother surface, though it’s still not the desired shape:
By the way, “Blend studio” is able to create a full blend between the side surfaces, but for now it’s still a bit confused as to how to complete the upper corner where all control points meet together. It’s visible at extreme close-up. That may be fixed soon.
As you can see in the video, two other Rhino tools struggled to deliver acceptable quality:
“Rebuild surface” generated highly distorted zig-zag-like control polygon of the rebuilt surfaces when the degree was set to 5. This is a known bug since many years. Rebuilding surface produces weird CV distribution
“Match surface” is unable to follow the overall flow of the target surface, trying to traighten the 3rd row of control points. This is also a known bug for decades (single Rhino 1 maybe?). It lacks an option to try to preserve the UV position of the 3rd row of control point and move them only along the normal direction. The lack of this option results in moving the side edges that were previously matched to the adjacent surfaces and destroy their continuity, eventually creating gaps from either side of the currently matched edge.
I have tried this, as well, but the idea is to push “Patch” to the limits to make it more robust. In many cases it’s not possible to fill the majority of the hole with a clean blend surface.
I had another case where the “Patch” tool could be optimized to generate a smoother internal flow. Perhaps adding a “Membrane” option could help to achieve a more natural shape?
P.S. There is a typo in my file. The first word must be “This” instead of “Rhis”.
I already tried various levels of stiffness, however, while it makes the middle of the patch surface smoother, it also introduces some noticeable waviness close to the border. This is “Stiffness” of 100.
my guess is it would require “local” stiffness.
and maybe even some kind of stiffness direction.
…would be fun to have a directional stiffness paint tool.
..our just draw the desired zebra stripes ;-D and hope AI will find the corresponding surface.
A good surprise! I’m impressed. “Patch” is capable of creating a single surface along two surface edges (sort of auto-chain).
Changing the continuity of one of those edges from G2 to G1 or G2 destroys the entire flow of the patch (maybe both chained edges must share the same setting for G0, G1 or G2?).
The culprit is in the bottom edge. It always causes issues, even with the earlier examples where the adjacent blend surfaces had a totally different shape. I noticed that increasing the degree of the side input surface minimizes the negative impact on the patch surface.
Some time ago, I proposed to implement driving curves to direct the control polygon of the patch surface. That means that the control polygon of the patch surface (the U and V) must follow exactly the same direction along the driving curves instead of using approximation with random direction.
Yes: it will merge any edges that are tangent continuous into a single edge. It will also chop off any dangling ends (try it ). In this case it gives 4 distinct edges, which unlocks the Untrimmed option.
Merging will only happen if both parts have the same continuity. Otherwise they are treated as independent edges. And in that case you will have 5 edges, and the Untrimmed option is no longer available.
When you’re in untrimmed mode, the refinement only goes so far, starting from 1 span in U- and V-direction. If you want to go further, increase the number of initial spans. I could get all edges to be G2 by using U-spans = 2 and V-spans = 4 with Refine=Yes.
Regarding point number 3, notice that the goal of the “Membrane” option (or “Stiffness”) is to smooth out the overall flow. While your screen-shot shows G2 continuity on all 4 sides, the patch surface near the bottom edge number 2 does not maintain the smooth flow of the input surface there. Instead, it keeps G2 only a few millimeters from the edge, then the shape gets a slight bump.
That was my observation on any approach that I tested with this particular surface, no matter if it’s trimmed or left untrimmed. Perhaps adding a new option to prioritize a chosen direction (V in your image) for smoothening of the overall flow will do the best job in this case.