Adjust closed surface seam in Grasshopper

Despite the plethora of GH plugins that I have, I was unable to find a component to do what the Rhino “Adjust closed surface seam” does.

Any suggestions or workarounds ?

Extract isocurves, change their seam, and recreate the surface.

var dir = s.Faces[0].IsClosed(0) ? 0 : s.Faces[0].IsClosed(1) ? 1 : 2;
if(dir != 2)
  A = Brep.ChangeSeam(s.Faces[0], dir, p, Rhino.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance) ?? s;
else
  Component.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Surface is not closed and the seam cannot be adjusted");

SrfSeam.gh (62.8 KB)

5 Likes

Spot on !