import Rhino
filter = Rhino.DocObjects.ObjectType.EdgeFilter
rc, objrefs = Rhino.Input.RhinoGet.GetMultipleObjects("Pick panel edge", False, filter)
if not objrefs: exit()
for e in objrefs:
result = e.Brep().Edges.MergeEdge(e.Edge().EdgeIndex, Rhino.RhinoMath.DefaultAngleTolerance)
print result
I drew a Plane and SplitEdge’d it.
The MergeEdge command works perfectly.
BrepEdgeList.MergeAllEdges also works perfectly, but I can’t use it, 'cause I need single target approach. I can rebuild the brep without that kink, but it’d be nice if the existing method worked or I knew how to make it work.