Re: [Maya-Python] edge of mid two vertex؟؟

22 views
Skip to first unread message
Message has been deleted

Tim Fowler

unread,
Oct 3, 2018, 3:42:17 PM10/3/18
to python_in...@googlegroups.com
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 <egol...@gmail.com> 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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c75d543a-180b-4294-9c65-57ec2063cfef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages