Hi grgolya,
Yes, there is a method to line this up:
https://www.amazon.com/clouddrive/share/ubPPKEAwmho1xZWeWWDj9t3S6K2dGCOp9aav2Fxxj1x
Since you need that for a Polygon (or group), the two points that would define the edge for the axis are not long in “focus” for this. I have shown it here with two Nulls, but anything that allows for snapping can be used.
Alternatively, you could look into Workplaces
https://help.maxon.net/c4d/r25/en-us/Default.htm#html/51902.html#PLUGIN_CMD_1027593
With very complex objects, I have just separated all of them and then stitched them back together. After setting all polygons as orientation for the axis. Like in the image below.
Cheers