mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
Fix bug in structural elements (PAL #2012)
This commit is contained in:
parent
44d013ca29
commit
b1226790de
@ -254,10 +254,11 @@ class Beam(StructuralElementPart):
|
||||
orientation is different than the orientation of the underlying OCC
|
||||
object.
|
||||
"""
|
||||
length = self.geom.BasicProperties(path)[0]
|
||||
p1 = self.geom.MakeVertexOnCurve(path, 0.0)
|
||||
p2 = self.geom.GetFirstVertex(path)
|
||||
dist = self.geom.MinDistance(p1, p2)
|
||||
return dist != 0.0
|
||||
return dist > length / 2
|
||||
|
||||
def _getVertexAndTangentOnOrientedWire(self, path, param):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user