From 1442137f3f713befcfde9e3eba55257e73be8d6a Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Mon, 13 Apr 2015 16:08:51 +0200 Subject: [PATCH] Structural elements: wrong orientation of faces (EDF #8518) --- src/GEOM_PY/structelem/parts.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) -- 2.39.2