Well, there is average vertices. But what I think you are explaining is a script to make the faces planar. https://www.creativecrash.com/maya/do..._makeplanar--2