Structural elements: wrong orientation of faces (EDF #8518)

This commit is contained in:
Renaud Barate 2015-04-13 16:08:51 +02:00
parent 044db8430d
commit 1442137f3f

View 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)