Vertex Normals?


Hi everyone! Anyone could help me please?

I am trying to get the vertex orientation (not only the normal axis, not only the z axis), but my code is not working correctly. I am using this:

[b]global vertFaces = polyOp.getFacesUsingVert $obj 1 – get vertex 1 normal
global fNormal = [0,0,0]
for j in vertFaces do
fNormal += polyOp.getFaceNormal $obj j

global vNormal = fNormal / vertFaces.numberSet

[/b]I can say that is not working correctly because when I select the vertex in Local mode, I can see cleary that the orientation is not the same as I got with this code.

I guess I have to work on quaternions, right?

thanks a lot!!!