I want the script to read the polygon average as it is when selected and average all the polygons selected based on faces selected average. Instead of as your script and others, which is averaging based on an axis.
Blender has this functionality built-in. If you care about having all planar polygons in your mesh you can take it over there, run the Make Planar Faces operation, and take it back to Maya.
If you want to flatten based on the vertices average normal, just select the vertices you want to do that, select the scale tool, on the tool options choose normals average, then just scale, they will flatten on the chosen axis that is rotated to face the selection average normal.
Also, in Max you can make planar to specific axis: x/y/z Or select the verts/edges/faces and scale until flat. In Zbrush you can also scale until flat with the transpose line or transpose move along the local normal and use the clipping brush.
Original general shape. Not sure how to measure exact angles, but I'd guess they stayed the same, or at least didn't change more than a couple degrees. In fact, if it's working the way it's supposed to, the angles shouldn't change at all from the perspective of its "best plane" (which is the average angle of the face, in…
No it works on vertices. But like I mentioned, converting selections in Maya is easy. You have a foldout menu for this under Modify. Or just ctrl+f9/f10/f11/f12. Actually I think the script does produce some result if you were to run it with faces selected. I managed to do this myself by mistake and oddly enough it…