Message 1 of 1
MFnMesh duplicateFaces - how to keep faces together?

Not applicable
10-04-2012
04:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm hoping someone here can help me with this. I am writing a plug-in node that duplicates all the faces of a mesh a given number of times. The MFnMesh::duplicateFaces() function, when given a list of all the faces of the object, does what I want. However the duplicate faces are split. It's as though I used the UI Edit Mesh->Duplicate Face command with the "Keep Faces Together" option turned off. Is there some way to keep them together? BTW - I'm wring the plugin in Python for Maya 2012 64bit.
Also - I was trying to find a way to merge vertices after the operation, and I can't find it anywhere. How is vertex merging done using the API?
Thanks in advance!
-Radek
I'm hoping someone here can help me with this. I am writing a plug-in node that duplicates all the faces of a mesh a given number of times. The MFnMesh::duplicateFaces() function, when given a list of all the faces of the object, does what I want. However the duplicate faces are split. It's as though I used the UI Edit Mesh->Duplicate Face command with the "Keep Faces Together" option turned off. Is there some way to keep them together? BTW - I'm wring the plugin in Python for Maya 2012 64bit.
Also - I was trying to find a way to merge vertices after the operation, and I can't find it anywhere. How is vertex merging done using the API?
Thanks in advance!
-Radek