I am trying to write an obj file with vertices. I calculate the normals of the vertices in my code and write them to this file. When I try to render this file in Meshlab, it reads the vertices correctly, but when I go to "Render-> Show vertex normals", it does not show the normals that I calculated. Rather, MeshLab computes its own normals and displays them.
I'm not sure how I can visualize the normals that I calculated / wrote to a file. I want to apply the Meshlab shader later based on my calculated normals.
To test this, I created a test obj file -
vn 0.517350 0.517350 0.517350
v 0.500000 0.500000 0.500000
vn -0.333333 0.666667 0.666667
v -0.500000 0.500000 0.500000
vn 0.666667 -0.333333 0.666667
v 0.500000 -0.500000 0.500000
vn -0.666667 -0.666667 0.333333
v -0.500000 -0.500000 0.500000
f 1//1 2//2 3//3
f 4//4 3//3 2//2
. , , - , "Render- > Show vertex normals".
, ? , .
!!