Discussion:
[Maya-Python] edge of mid two vertex؟؟
miarmy
2018-10-03 18:49:52 UTC
Permalink
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_maya+***@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.
Tim Fowler
2018-10-03 19:42:02 UTC
Permalink
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
Post by miarmy
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
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 python_inside_maya+***@googlegroups.com.
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.
Continue reading on narkive:
Loading...