Fix bug in structural elements (PAL #2012)

This commit is contained in:
barate 2011-11-14 13:55:44 +00:00
parent 44d013ca29
commit b1226790de

View File

@ -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):
"""