PDA

View Full Version : query vertex id by position


thematt
12-19-2006, 08:26 AM
Hi guys, I'd like to know it it's possible to query a vertex id information giving a point on space (coordonates)?
I'm trying to mirror influence curves and nurbs but it actually require that i write the tool for it because the maya mirror doesn't seems to take that in acount.
Right now I struggle getting the index of the mirror vertex i need..once that is done it will be all good.

thanks for any help.

cheers

Starrider
12-19-2006, 10:21 PM
hi!
as far as i know you can't achieve that with out-of-the-box mel code. if you'd be using the api it would be quite easy write a command/node that finds the closest point on the mesh/surface to a given position. there's also an example "closestPointOnCurve" api-project in the devkit folder.
maybe these commands are also delivered with the maya bonus tools? but i'm not sure.
good luck!

thematt
12-20-2006, 07:51 AM
thanks that's what I thought actually but I'm not an Api guy..although I'll find somedody that will help if need.
I know i could do it with face, but yes vertex is another beast and obviously it's what I need.

cheers

CGTalk Moderation
12-20-2006, 07:51 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.