what’s the simplest method to translate facenormal to Euler to be used in a script that clones objects to face center ?

(I’ve used it for trees and perpendicular things, now I’d need it to rotate objects according to facenormal)

initial function is:

```
def midpoint (face, mode):
mid = [0.0] * 3; qat = [0.0] * 3; mtx = [0, 1, 2]
for v in face.v:
for i in mtx: mid[i] += v.co[i]
for i in mtx:
mid[i] /= len(face.v); mid[i] = round (mid[i], 3)
if mode == 0: spawn(mid)
.... etc
```

and it sends the location(s) to cloning function. so I’d like just to add calculation from face.no to Euler to send to cloning function.