How to use GeometryComponentIndex to get id of a sub object?


I use GeometryComponentIndex.Index to get the id of a mesh face.How should one modify this to get the id of an edge if the selected sub object was edge?

I’ve never used the RhinoCommon version of this, but you can query the component type GeometryComponentIndex.ComponentIndexType. This should be MeshTopologyEdge. That means GeometryComponentIndex.Index is the index of the mesh topology edge.

1 Like

Thank you David. For some reason I thought this only returns the mesh id, while in fact it does work as you explain and is context sensitive.