Ok I ran into a little hiccup with some normal tools I’ve written. I’m going to see if i can share the test scene here, but in the meantime, I figured I would ask to see if anyone has dealt with this before.
The process is that i set vertex normals based on a vector. If the vertex is on a hard edge, I need to set the per-face-per-vertex normal:
## mesh is an instance of MFnMesh
mesh.setFaceVertexNormal(normal, fid, vid)
All is well, whoever doing this will make all edges connected to the face/vertex pair hard, so I need to go back and turn these back to soft edges where necessary. Here comes the problem, if i set the edge to soft, it will SOMETIMES reset the vertex normal of the vert i just set.
It doesn’t happen all the time though. I have a test scene with seemingly identical topology and one edge resets the normal while the other doesn’t
I’ve hit a wall. Any ideas out there?
Thanks