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

Fix visualization of shape with mirror transformation.

This commit is contained in:
ika
2019-04-04 14:40:35 +03:00
parent ae6699b9c4
commit d9d11c76b5

View File

@@ -207,8 +207,9 @@ namespace
if (!aLoc.IsIdentity())
{
aPoint.Transform (aTrsf);
aNormals (aNodeIter) = aNormals (aNodeIter).Transformed (aTrsf);
if (isMirrored)
aNormals(aNodeIter).Reverse();
}
if (theHasTexels && aUVNodes.Upper() == aNodes.Upper())
@@ -228,7 +229,7 @@ namespace
Standard_Integer anIndex[3];
for (Standard_Integer aTriIter = 1; aTriIter <= aT->NbTriangles(); ++aTriIter)
{
if ((aFace.Orientation() == TopAbs_REVERSED) ^ isMirrored)
if ((aFace.Orientation() == TopAbs_REVERSED))
{
aTriangles (aTriIter).Get (anIndex[0], anIndex[2], anIndex[1]);
}