I'm getting all selected objects (polys) and then, trying to iterate over all faces of them. I don't understand one little thing:
How can I take MObject poiter to objects that I'm interating over.
Please look here:
MItSelectionList iter (selection, MFn::kMesh);
for (; !iter.isDone(); iter.next())
MItMeshPolygon faceIter (mesh, &stat);
I should fed MObject mesh to MItMeshPolygon, but i have only "iter". From where I have to take MObject pointer?
Should I use MDagPath::node method?
Sorry, if it's hard to read, but i'm from moscow and it's hard for me to explain things that i don't understand in another language.