mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 01:10:36 +05:00
Structural elements: wrong orientation of faces (EDF #8518)
This commit is contained in:
parent
044db8430d
commit
1442137f3f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user