I can get a set of co-planar faces from any mesh. Some of these co-planar faces form a circle while most of them do not. I eventually want to know which faces are forming a circle using Python, so that I can apply quads to these faces and straighten their UVs.
A manual way I have figured out for doing this is to compare the surface area of co-planar faces from Blender with the surface area of all faces taken manually as if they were forming a circle. If it's close enough I can know if they make a circle. But this is complicated and performance intensive.
Can someone please guide me if there is a simple way to write a script for doing this or give me any sample code to work with? Thanks.