Wish: SubD Optimize – Automatic Vertex Welding and Topology Cleanup

I’d like to suggest an Optimize command for SubD objects

When editing SubD geometry, especially after operations such as Bridge, Stitch, or Append Faces, coincident vertices or edges may remain disconnected, sometimes producing unexpected surface deformations.

Currently, Stitch can resolve these issues, but it requires manually identifying and selecting the affected vertices or edges.

It would be useful to have a single command that automatically:

  • Welds coincident vertices within a user-defined tolerance.

  • Stitches compatible coincident edges where possible.

  • Removes degenerate or unused geometry, where applicable.

Ideally, the default tolerance could be 0, affecting only exactly coincident vertices, with the option to specify a larger tolerance when needed.

The goal is to clean up SubD topology without manually searching for disconnected vertices or performing multiple operations.

A similar request was discussed here:
[Merge by distance SubD]

This is similar to the Matchmesh edge command for Rhino repair.

There is also Alignvertices command that might help too.

Thanks, Scott!

I’ve tested AlignVertices, but it only adjusts vertex positions without actually welding them.

What I’m looking for is automatic welding of coincident SubD vertices within a specified tolerance, including stitching compatible edges where possible.

I think in Rhino 9 Beta wit will weld. We just updated that function.

Let’s hope so! :slight_smile: I’ve tested it in Rhino 9 Beta, but for now it still doesn’t weld the vertices.
Adding a Weld=Yes/No option to AlignVertices would be a nice solution too.

@badileanu I just tried this in Rhino 9, it does weld SubD vertices. However, it only works for vertices of the control polygon, that are close to each other in the control polygon (i.e. what you see in box mode for SubD display).

If you get a chance to try again and still find that it does not work like you would want it to, please upload a 3dm file to reproduce the issue, and show the exact options you are using in AlignVertices.

Hi Pierre,

Thanks for checking!

I’ve attached a 3DM file with three examples: the original geometry, the result after AlignVertices, and the desired result after manually applying Stitch.

All surfaces already belong to the same SubD object. AlignVertices correctly aligns the vertices, but they remain topologically disconnected.

Since AlignVertices already has a distance tolerance, perhaps a simple Weld=Yes/No option could automatically weld aligned vertices and stitch compatible edges.

This would eliminate the need for manual stitching, which becomes impractical with complex SubD geometry.

System info

Rhino 9 SR0 2026-10-20 (Rhino 9 BETA, 9.0.26293.12303, Git hash:master @ 3225ee2553a4565e4ed5ef04ee64d6d334601ed4)
License type: Commercial, build 2026-10-20
License details: Cloud Zoo
Expires on: 2026-12-04

Windows 11 (10.0.26300 SR0.0) or greater (Physical RAM: 15GB)
.NET 10.0.9

Computer platform: LAPTOP - Plugged in [97% battery remaining]

Non-hybrid graphics configuration using DirectX
Primary display: NVIDIA GeForce RTX 4060 Laptop GPU (NVidia) Memory: 8GB, Driver date: 7-22-2026 (M-D-Y). DirectX(11)

Integrated accelerated graphics device with 4 adapter port(s)

  • Windows Main Display is laptop’s integrated screen or built-in port

Secondary graphics devices.
AMD Radeon 780M Graphics (AMD) Memory: 1GB, Driver date: 12-5-2023 (M-D-Y).

Integrated accelerated graphics device with 10 adapter port(s)

  • Laptop’s primary display device

DirectX Settings
Safe mode: Off

OpenBLAS: OpenBLAS 0.3.30 DYNAMIC_ARCH NO_AFFINITY Cooperlake MAX_THREADS=64.

Rhino plugins that do not ship with Rhino
C:\Users\badil\AppData\Roaming\D5 Lite for Rhino\engine\D5Conv.Rhino8.rhp “D5 Live Sync for Rhino”
C:\Program Files\Rhino 9 WIP\Plug-ins\Tibidabo\VisualARQ.rhp “VisualARQ”
C:\Program Files\Rhino 9 WIP\Plug-ins\Tibidabo\Tibidabo.rhp “Tibidabo”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 9 WIP\Plug-ins\Commands.rhp “Commands” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 9 WIP\Plug-ins\RhinoAI\net8.0\RhinoAI.rhp “RhinoAI” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\3dxRhino.9.rhp “3DxRhino.9”
C:\Program Files\Rhino 9 WIP\Plug-ins\UpdatesAndStatistics\UpdatesAndStatistics.rhp “UpdatesAndStatistics” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 9 WIP\Plug-ins\MeshCommands.rhp “MeshCommands” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 9.0.26293.12303
C:\Program Files\Rhino 9 WIP\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 9 WIP\Plug-ins\SectionTools.rhp “SectionTools”

align-vertices.3dm (186.3 KB)

@badileanu Thanks for the detailed example, I can reproduce it here and have logged a ticket for the developer to fix it: RH-100067 AlignVertices: Moves but doesn’t weld SubD vertices

PS: @badileanu You can also use WeldEdge to weld the edges together after AlignVertices, it’s a bit easier to do it with that than with Stitch.

Thanks, Pierre! I appreciate the tip and for logging the issue. Hopefully,
we’ll see this improved in a future update!