I was wondering if I could find some help with an issue I have found with the SplitEdge method of MeshTopologyEdgeList. I have written the attached script to speed up the splitting of naked mesh edges of very large meshes, as is common at my job. Everything works correctly out of EditPythonScript and RunPythonScript, but fails when I install the scripts as plugins.
The I have debugged the issue to the specific line where I split edge:
flag = meshTopologyEdgeList.SplitEdge(edgeTopoIndex, splitPercentage)
When run from RunPythonScript, this correctly splits the edge, the meshTopologyEdgeList.Count increases by 2, as expected, and the flag returns True. However, when it is run directly from the command line as an installed plug in, the method returns True, but nothing has been changed with the meshTopologyEdgeList, and the mesh is not successfully split.
To make getting help more complicated, we run Rhino on computers not connected to internet, so I have had to manually retype the entire code here. Assuming no typos, it should all be here, but I have not been able to verify if it is identical yet. But I was hoping that someone could take a look and determine if I am missing something or if I have found a bug.
@Isaac_Murrin There was loads of typos in the script and I managed to fix a few. Not sure what meshTopologyEdges is on line 99 meshTopologyEdgeList = meshTopologyEdges: