Open jducrocq007 opened 2 years ago
According to @damienmarchal , the issue comes from the fact that the faces normals in regularGridTopoly components are computed to be oriented sometimes inwards and sometimes outwards. Since the vertices normals consist in an interpolation of the faces normals around the specified vertex, the orientation of the vertex normals are wrong.
Problem
Description Exporting a regular grid of hexahedras as an OBJ file does not properly export the normals. As you can see in the attached images "sofaNormals.png" and "blenderNormals.png", the normals are not oriented the same inside the Sofa scene and on the OBJ exported. This is an issue when you want to compute light effect like refractions or reflections on the exported mesh.
Steps to reproduce
Expected behavior The normals should have had an orientation which is perpendicular to the local surface around each vertex (should be straight perpendicular to a planar surface around the center and around 45 degrees in the borders, since the vertices touch two different faces there).
Environment
Context
Command called (to copy in a .scn/xml file)
Env vars
Logs
Full output
Content of build_dir/CMakeCache.txt
CMakeCache.txt