adjacent verticies of a face

452 views
Skip to first unread message

DayDreamer

unread,
Oct 2, 2013, 7:44:45 AM10/2/13
to python_in...@googlegroups.com
How to find adjacent veritces of a particular vertex in a face using Maya Api.

Thanks

Tim Fowler

unread,
Oct 2, 2013, 1:57:16 PM10/2/13
to python_in...@googlegroups.com
If I understand what you're asking for, in C++, you could take the vertex id and use MItMeshVertex::getConnectedEdges...then given all the connected edge id's you could use MFnMesh::getEdgeVertices for each vertex...then look at the two vertices for that edge and grab the one that isn't the id that you started with.

If that sounds like what you need then I'm sure there's Python access to all of that.


On Wed, Oct 2, 2013 at 7:44 AM, DayDreamer <day.drea...@gmail.com> wrote:
How to find adjacent veritces of a particular vertex in a face using Maya Api.

Thanks

--
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 post to this group, send email to python_in...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/8d6a74ea-197c-468c-b30a-55067fc0821a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

860323

unread,
Oct 2, 2013, 11:08:45 PM10/2/13
to python_in...@googlegroups.com, python_in...@googlegroups.com
Hi:

You can get the script in the Script Edit through select the vertex! Maya Script Edit will show all Mel Script with you action.

Sent from my iPhone

> On 2013年10月2日, at 19:44, DayDreamer <day.drea...@gmail.com> wrote:
>
> How to find adjacent veritces of a particular vertex in a face using Maya Api.
>
> Thanks
>

DayDreamer

unread,
Oct 2, 2013, 11:29:11 PM10/2/13
to python_in...@googlegroups.com
@tim ..... tnx for it ... ill try d solutn n post ...

@eagleZ .... that is maya cmds , i m askin about maya api.

Thanks for both d posts

Joe Weidenbach

unread,
Oct 3, 2013, 8:38:29 AM10/3/13
to python_in...@googlegroups.com
Just a quick answer, but check out http://mayamel.tiddlyspot.com. It's
a GREAT resource for python and MEL commands, that I use all the time.
The navigation takes a bit of getting used to, but basically just look
at the tags to the right. If you click on "Vert", you'll find a list of
vert related questions, and clicking one will open an answer (I don't
know of anyway to permalink directly). The one you're looking for is
"How can I find edge-connected verts based on a source vert?". It's
even got complete source code to build off of.

Tim Fowler

unread,
Oct 3, 2013, 10:12:55 AM10/3/13
to python_in...@googlegroups.com
Nice...I'd never seen that site before.  And it looks like MitMeshVertex has the function to get the other vertices directly, so no need to get the edges as a middle step.


--
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+unsub...@googlegroups.com.
To post to this group, send email to python_inside_maya@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/524D6545.2020203%40gmail.com.
Message has been deleted

Joe Weidenbach

unread,
Oct 5, 2013, 1:45:50 PM10/5/13
to python_in...@googlegroups.com
Thanks!

I use it pretty much every day--it's great stuff!

On 10/3/2013 8:55 AM, AK Eric wrote:
Glad you like the site ;)  FYI You can permalink to any of the tiddlers (individual subjects) via:

Open the tiddler in question.
Press "Close Others" in it's menu.  Now it's the only one active
Press the "permaview" button on the top right:  The URL in the address bar will now be the full path to the subject, which you can copy.  Like:
http://mayamel.tiddlyspot.com/#%5B%5BHow%20can%20I%20find%20edge-connected%20verts%20based%20on%20a%20source%20vert%3F%5D%5D

I agree, it takes some time getting used to navigating them, but once you do... ;)


On Thursday, October 3, 2013 5:38:29 AM UTC-7, Joe Weidenbach wrote:
Just a quick answer, but check out http://mayamel.tiddlyspot.com.  It's
a GREAT resource for python and MEL commands, that I use all the time.  
The navigation takes a bit of getting used to, but basically just look
at the tags to the right.  If you click on "Vert", you'll find a list of
vert related questions, and clicking one will open an answer (I don't
know of anyway to permalink directly).  The one you're looking for is
"How can I find edge-connected verts based on a source vert?".  It's
even got complete source code to build off of.
--
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 post to this group, send email to python_in...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1f6aa2a6-9f8c-4e20-8e36-89e280ac5dc9%40googlegroups.com.

DayDreamer

unread,
Oct 9, 2013, 12:47:15 AM10/9/13
to python_in...@googlegroups.com
Guys thanks for the replies, Nice resource 
Really Busy, these days

I will post my post my code shortly for review.

@ Justin ... http://mayamel.tiddlyspot.com ..... Make it sticky in resource forum
Reply all
Reply to author
Forward
0 new messages