BUG with the new Patch tool in Rhino 9 BETA

@menno , I found a bug, which you can observe in the file attached in this post. I also upload it here just in case:

Ruin.3dm (1.7 MB)

https://discourse.mcneel.com/t/bug-quad-remesh-fails-quite-a-lot-with-mechanical-geometry/222359/19

There is a BUG with the “Patch” tool which is unable to create a surface from the hole in one of the models inside the 3dm file attached above. If you split the edge which I marked on the 3d model, the “Patch” tool somewhat works, though it leaves one bad area that renders the patch unusable.

On a side note, the dot object is rendered behind the preview. Check my 2nd screen-shot. Not a big deal, it’s just interesting that the dot objects used to be before every other geometry in the past, but not the preview gets a higher priority.


Another bug that I found is that the preview of “Patch” will lock the display mode that was used upon running the command will not let the user change it with another display mode until the command is finished or cancelled.

There’s a couple of things going on. Let me break it down:

  • the need to split an edge
  • edges not meeting at a corner within requested G0 / G1 tolerance
  • text dot obscured by preview
  • display mode locked

the need to split an edge

Patch is reasonably good in figuring out what a closed loop is in the input curves and will trim off dangling ends so you don’t need to split edges prior to starting Patch. This is limited to dangling ends and internal loops are not supported. This is what happens in your input (see location of cursor) and that is the reason why you need to split one of the edges.

edges not meeting at a corner

After splitting one of the edges, the next problem is that the input edges do not meet each other with the tolerances for position (G0) nor tangency (G1) you have in the document. This is when you see warnings like this:

This is an indication that a closed loop cannot be formed with tolerances used.
Adjust your tolerances like so, and a result can be obtained:

text dot obscured

I have made a ticket for this: RH-99529

display mode locked

I don’t think it’s locked exactly - try switching between wireframe and shaded. But it looks like switching between custom display modes (you have A LOT!) does not work as well as it should. RH-99530

Hi @menno , thank you for the detailed reply!

Note that all the surfaces with a random shape (except for the straight clean rectangular surfaces) were previously created with the new “Patch” tool with a tolerance of 0,001 mm. However, but after analyzing them with the “Global edge continuity” tool it’s evident that many of their edges don’t fall within the desired tolerance. I don’t know why some adjacent surface edges are up to 0,008 mm apart, since my settings are always set to 0,001 mm.


The area of the created patch surface that was not split properly (upper right corner on my original screen-shots) has a very tiny gap of just 0,0005894 mm, so it’s strange that the “Patch” tool didn’t detect this as “a pair of trimming edges”, and instead leaved that particular gap open when it did the automatic trimming (seen in my 3rd screen-shot above).


As for the bug with the “locked” display modes, seems like the latest BETA could switch only to “Wireframe” mode. When I try to switch to the default “Shaded” mode, it didn’t work. My custom display mode that was set prior running the ! _Patch command can’t be changed with any other display mode except for “Wireframe” (which basically hides the geometry). Here is a screen-shot taken after I ran the '_SetDisplayMode _Viewport=_Active _Mode=_Shaded command:


P.S. I can’t see this page:
https://mcneel.myjetbrains.com/youtrack/issue/RH-99530