Hi guys.
I'm trying to query all the polygon shells on a mesh without selecting them, (not the number of shells, the actual components per shell)
cmds.polySelect(expandToShell=1) will select the shells and this is causing maya to be unstable and of course it's quite slow.
is it possible somehow to do it with the API ?
I've been trying iterating through the polygon with MItMeshPolygon and then getConnectedFaces for every face, but seems not very optimal, as I have to do it for each face and then traverse it again to detect which ones are part of the shell.