inverted normals
Hi all
I have a question...
Why am I getting different output from the same input?
Example:
At the input - one triangle (surface v0, v1, v2):
v0 (0, 0, 0);
v1 (0.0297555886f, 0.00966817699f, 0.00246232748f);
v2 (0.0312868766f, 0.00000000f, 0.00246232748f);
On restart (GEO) all normals are inverted:
// first launch (GEO)
coords:
0.000000, 0.000000, 0.000000
0.029756, 0.009668, 0.002462
0.031287, 0.000000, 0.002462
normals (ERROR: all inverted):
-0.078453, -0.012426, 0.996840
-0.078453, -0.012426, 0.996840
-0.078453, -0.012426, 0.996840
pcoords:
0.000000, -0.000000
0.004894, 0.031000
-0.004894, 0.031000
For the second and subsequent (GEO) - only one (inverted):
// second launch (after gmsh::clear())
coords:
0.000000, 0.000000, 0.000000
0.029756, 0.009668, 0.002462
0.031287, 0.000000, 0.002462
normals (ERROR: only first inverted in zero point):
-0.078453, -0.012426, 0.996840
0.078453, 0.012426, -0.996840
0.078453, 0.012426, -0.996840
pcoords:
0.000000, 0.000000
-0.004894, 0.031000
0.004894, 0.031000
When using OCC: always correct results:
coords:
0.000000, 0.000000, 0.000000
0.029756, 0.009668, 0.002462
0.031287, 0.000000, 0.002462
normals (OK):
0.078453, 0.012426, -0.996840
0.078453, 0.012426, -0.996840
0.078453, 0.012426, -0.996840
pcoords:
0.017376, -0.002743
-0.012481, 0.006926
-0.014008, -0.002743