1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

OCC22503 Face triangulation causes shading display of whole shape to fail

This commit is contained in:
ABV
2011-05-19 11:00:31 +00:00
committed by bugmaster
parent 587630c5be
commit 446e11f3c6
4 changed files with 97 additions and 39 deletions

View File

@@ -204,15 +204,17 @@ void Poly_Connect::Initialize(const Standard_Integer N)
mynode = N;
myfirst = Triangle(N);
mytr = myfirst;
Standard_Integer i, no[3];
const Poly_Array1OfTriangle& triangles = myTriangulation->Triangles();
triangles(myfirst).Get(no[0], no[1], no[2]);
for (i = 0; i < 3; i++)
if (no[i] == mynode) break;
myothernode = no[(i+2)%3];
mysense = Standard_True;
mymore = Standard_True;
mymore = (myfirst != 0);
if (mymore)
{
Standard_Integer i, no[3];
const Poly_Array1OfTriangle& triangles = myTriangulation->Triangles();
triangles(myfirst).Get(no[0], no[1], no[2]);
for (i = 0; i < 3; i++)
if (no[i] == mynode) break;
myothernode = no[(i+2)%3];
}
}
//=======================================================================