Couple of questions…
Firstly note this is in a Grasshopper Python Component so the List management is somewhat controlled by Grasshopper.
Is there a better way than this, to access Index Pair in Python. so it stays as a list and i don’t have to duplicate code.
Also i am getting an issue when trying to access vertex colours as it wants a Array[Object] but my index is a Array[int].
import Rhino.IndexPair as ip pi = mesh.TopologyEdges.GetTopologyVertices(i) i_p= ip.I.GetValue(pi) j_p= ip.J.GetValue(pi) iv0 = mesh.TopologyVertices.MeshVertexIndices(i_p) iv1 = mesh.TopologyVertices.MeshVertexIndices(j_p) c0 = mesh.VertexColors.Item.GetValue(iv0) c1 = mesh.VertexColors.Item.GetValue(iv1)