So i'm back with another stupid question about low-level 3d :D I'm writing addon that will count the number of vertices that is needed to render the mesh say in Unity.
For now i've decided to first count how much normals re there on every visible vertex, so this unique normals would be the number i need.
But UVs add verts too, so i decided to count all the UV verts, subtract number of visible verts and add this number to total count (normals).
That worked fine for simple and complex meshes and i was happy. But now i've created another model and addon failed to count right number.
After investigation a narrowed the issue down to that thingy (see below). It is mesh with smooth shading. Blue - hard edge, orange - uv seam.
My addon shows 13 verts for it and it is right according to its algorythm. But there are 14 verts, because 4 separate polygons would be drawn.
So i'm stuck because i totally do not know how to get such information from blender api (and actually i don't know what information i need). Anyone familiar with this can advice me something useful?
link to full addon code: https://github.com/curly-brace/Blender-Vertex-Counter
The strange hexagon: