Part: fix bug in Part::Tools::getPointNormals for OCCT 7.6

This commit is contained in:
wmayer
2021-10-09 14:34:04 +02:00
parent a7f9c2f1b9
commit 86208783a8

View File

@@ -528,6 +528,7 @@ void Part::Tools::getPointNormals(const TopoDS_Face& theFace, Handle(Poly_Triang
Standard_Boolean hasNodesUV = aPolyTri->HasUVNodes() && !aSurf.IsNull();
Standard_Integer aTri[3];
aPolyTri->AddNormals();
for(Standard_Integer aNodeIter = 1; aNodeIter <= numNodes; ++aNodeIter)
{
// try to retrieve normal from real surface first, when UV coordinates are available