mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 17:30:35 +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"])
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user