MFnMesh setPoints setVertexNormals performace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone.
I have done a custom node plugin that generates geometries every frame gathered from an external software. The IPC communication is done correctly. Anyway, updating the geometry in Maya has low performance.
1.- My node has an array of output meshes, and each frame i updated them. First time, if there is no meshOb associated with the outputHandle i generate a new mesh using MFnMeshData. Next times, i only update it if the mesh is there. (Similar to Alembic Node)
2.- Updating the geometry means setPoints and setVertexNormals. setPoints performance is really good (0.2 ms for 40.000 vertices), anyway, setVertexNormals takes about 3ms per output mesh.
Does anyone knows about setVertexNormals performance and how to achieve better times?????
Thank you in advance