The contour is shown in purple. Instead of having one closed contour, i get 2 pieces of contour which I’m unable to rs.JoinCurve since there are some pieces of polyline (shown with red arrows) that prevent polylines from touching at their ends.
I’m not sure why this works in Rhino 7 but not in 8. I can duplicate the problem just using the DupBorder command.
It looks like the problem is with the mesh itself, it has a few faces which should be joined, but have a naked edge between them. The outline curve that is in the document also shows this.
A way to fix this, is to run the MatchMeshEdge command prior to duplicating the border.
Speaking of MatchMeshEdge, I have an issue with it, as it does not produce exactly the same output each time, using the same inputs. This time, the behaviour is both with Rhino 7 & 8. Here is a link to a previous post about it. Do you have an idea what can be the problem?
Here is another case I struggle with, using rs.DuplicateMeshBorder. This time, I get an open contour either with Rhino 7 & 8, after having used MatchMeshEdge. Is there something I can try to fix that?
Thanks Dale. You’re right, my mesh has 2 non-manifold edges. The MeshRepair command do repair it successfully, but I would really need to get that without user interaction. Is there a way to do so using IronPython? So far, i’ve tried this, without success:
cmd = "_MeshRepair Selid " + str(SplitMesh) + “Enter Enter” # Manual only; and the scripts continues before the mesh is repaired!
rs.Command(cmd, echo=True)