From: Renaud Barate Date: Mon, 13 Apr 2015 14:08:51 +0000 (+0200) Subject: Structural elements: wrong orientation of faces (EDF #8518) X-Git-Tag: V7_6_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1442137f3f713befcfde9e3eba55257e73be8d6a;p=modules%2Fgeom.git Structural elements: wrong orientation of faces (EDF #8518) --- diff --git a/src/GEOM_PY/structelem/parts.py b/src/GEOM_PY/structelem/parts.py index fcd96be6b..5ab2f2474 100644 --- a/src/GEOM_PY/structelem/parts.py +++ b/src/GEOM_PY/structelem/parts.py @@ -790,13 +790,10 @@ class StructuralElementPart2D(StructuralElementPart): self.geom.ShapeType["FACE"]) for face in faces: offsetFace = self._makeFaceOffset(face, offset) - # get tangent plane on surface by parameters + # get the center of the face and the normal at the center center = self.geom.MakeVertexOnSurface(offsetFace, uParam, vParam) - tangPlane = self.geom.MakeTangentPlaneOnFace(offsetFace, - uParam, vParam, - 1.0) - normal = self.geom.GetNormal(tangPlane) + normal = self.geom.GetNormal(offsetFace, center) marker = self._orientation.buildMarker(self.geom, center, normal) listMarkers.append(marker)