From 17f49bab18e0f7f8527c074267cad8997efbdbbb Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 13 Apr 2022 12:51:08 +0200 Subject: [PATCH] Part: [skip ci] fix computing of face normals in TopoShape::getPoints --- src/Mod/Part/App/TopoShape.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index 4fca2e6975..41778b4b0d 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -3798,6 +3798,8 @@ void TopoShape::getPoints(std::vector &Points, Points.push_back(Base::convertTo(p)); gp_Dir normal; if (GeomLib::NormEstim(aSurf, p2d, Precision::Confusion(), normal) <= 1) { + if (face.Orientation() == TopAbs_REVERSED) + normal.Reverse(); Normals.push_back(Base::convertTo(normal)); } else {