Part: [skip ci] fix computing of face normals in TopoShape::getPoints

This commit is contained in:
wmayer
2022-04-13 12:51:08 +02:00
parent 631d36e87c
commit 17f49bab18

View File

@@ -3798,6 +3798,8 @@ void TopoShape::getPoints(std::vector<Base::Vector3d> &Points,
Points.push_back(Base::convertTo<Base::Vector3d>(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<Base::Vector3d>(normal));
}
else {