I’m doing a generative geometry setting vertex position and vertex normals.
It works correctly, as you see when I open the generated mesh with mesh lab and the light is correctly calculated, if the selected view is the vertex view.
As this tube is an instance of of3DPrimitive, i can use drawNormals to debug them.
But in both cases, when drawing the normals per vertex:
tube.drawNormals(2, false);
Or when drawing the normals per face
tube.drawNormals(2, true);
The normals are always pointing out in the right direction, from inside the tube to outside, it is just in meshlab that they look wrong in the “faces” view.
I think it is a problem in my code because I’ve downloaded a couple of meshes and I’ve opened them in meshlab, and they look good
Is there something that I’m not taking into consideration?