Object Origin to geometry with normal orientation

I’m wondering why there is no possible way in blender to align the “local object’s origin” to a selected polygon and also use its normal for the orientation of the origin.

I searched the internet for hours now, and can’t find any plugin or method to achieve this result.

All plugins or scripts only use the location but totally ignore the visual orientation of the gizmo. (When set to normal)

In 2.79 there was a command for “align orientation to face”. Can’t find the command in python 2.8, it was called “bpy.obs.object.ralign.orientation_to_face()”

Please help

1 Like

I use: calc_tangent_edge_pair() of bmesh.
Try this: