Getting any face for each polygon shell

67 views
Skip to first unread message

Alejandro

unread,
Jun 10, 2022, 7:50:24 PM6/10/22
to Python Programming for Autodesk Maya
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.

 
Reply all
Reply to author
Forward
0 new messages