How does BrepEdgeList.MergeEdge Method work?

This does nothing. What am I doing wrong?

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

Hi @Asterisk,

Does the MergeEdge command work on your model? Can you post a model and highlight which edge(s) you are trying to merge?

– Dale

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.

edge kinks.3dm (38.1 KB)

Hello - what do you mean by this, exactly?