Rhino BETA Feature : Untrimmed surfaces with Patch

In the latest builds of Rhino BETA improvements were added to the way that 4-sided surfaces are created in the Patch command. This post goes into some detail about these improvements.

Why was this changed?

In the method for untrimmed patches that was initially used, the edge’s position (G0), tangency (G1) and curvature (G2) constraints were applied as “soft constraints” together with the fairness constraints that bend the surface, the same way that the multi-sided patch method works with the Projected or Molded option. This means that without refinement, edges would not align as well as they should, and to reach the required continuity, multiple refinement steps were needed that resulted in dense surfaces:


Without refinement - no position or tangency constraint matched


Without refinement (zoom in) - edges and corners do not match


With refinement - a dense surface of 24x28 = 672 control points matches up to G1 continuously

What was improved?

Making untrimmed surfaces with patch has been improved by first making the surface edges match with the required continuity, and refining the surface if needed, followed by applying the fairness constraints only to surface control points that do not affect the constraint edges.

There are now two ways in which untrimmed surfaces can be created by Patch: with matched parameterization or with unmatched parameterization.

Matched Parameterization

When this is possible*, the parameterization of the constraint edges is used for the surface by making the edges have compatible parameter ranges and knot vectors. This is called “matched parameterization” mode and this mode will have single or low-span surfaces as result if the input curves are single or low-span themselves. To make it clear that this mode is engaged, the preview wire color is changed from pink to light green (both colors are configurable in the advanced options section, search for Patch ).


Same model as above, new method with matched parameterization degree 5x5 single span = 36 control points.

Unmatched Parameterization

In cases where matched parameterization is not possible, the new method still gives superior results with better continuity and less dense surfaces:


Existing method: degree 5x5 27x25 = 675 control points


New method degree 5x5, 13x13 = 169 control points

Good to know

It is still possible to go back to the initial method. Use the hidden command testTogglePatchUntrimmed or search for the advanced setting PatchUntrimmedNewMethod. It is expected that before the BETA period ends, this option will be removed.

Get in touch

Please let us know if you get unexpected results.

Footnoote

(*) matched parameterization is possible when the constraint edge curves have no internal duplicate knots. Typically this is only the case on untrimmed surface edges.

Not sure if it’s too late for this to be implemented in Rhino 9, but here I mentioned a possible future new option called “Relax”.