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"]) self.geom.ShapeType["FACE"])
for face in faces: for face in faces:
offsetFace = self._makeFaceOffset(face, offset) 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, center = self.geom.MakeVertexOnSurface(offsetFace,
uParam, vParam) uParam, vParam)
tangPlane = self.geom.MakeTangentPlaneOnFace(offsetFace, normal = self.geom.GetNormal(offsetFace, center)
uParam, vParam,
1.0)
normal = self.geom.GetNormal(tangPlane)
marker = self._orientation.buildMarker(self.geom, marker = self._orientation.buildMarker(self.geom,
center, normal) center, normal)
listMarkers.append(marker) listMarkers.append(marker)