]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Structural elements: wrong orientation of faces (EDF #8518) rbe/fix-structelem-orientation V7_6_0b1
authorRenaud Barate <renaud.barate@edf.fr>
Mon, 13 Apr 2015 14:08:51 +0000 (16:08 +0200)
committerRenaud Barate <renaud.barate@edf.fr>
Mon, 13 Apr 2015 14:08:51 +0000 (16:08 +0200)
src/GEOM_PY/structelem/parts.py

index fcd96be6b09b9650eb288ffc19feaa58277e32a0..5ab2f2474623bcf2ade57c6332b0d7704739b262 100644 (file)
@@ -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)