I think you could use a combination of MItMeshVertex::getConnectedEdges and MItMeshVertex::getOppositeVertex functions. You'd initialize the iterator with one of your vertices, then query all of it's connected edges, then using those edge id's you can check what vertex is on the other side. Does that make sense?
There could be other functions and other iterators that you could also use, but I think these would work. -Tim On Wed, Oct 3, 2018 at 2:49 PM miarmy <[email protected]> wrote: > hi! i have two vertex index, How can i check that, they are linked by one > edge or no?and how can i know what is that edge index? > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/c75d543a-180b-4294-9c65-57ec2063cfef%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/c75d543a-180b-4294-9c65-57ec2063cfef%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CALKD2Wra5UXGofjuaiEKwo1ccgzWutEc5-jG95NziSEL2aibDQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
