Arch: Fixed wrong structural node generation
This commit is contained in:
@@ -850,6 +850,7 @@ class _Structure(ArchComponent.Component):
|
||||
extdata = self.getExtrusionData(obj)
|
||||
if extdata and not isinstance(extdata[0],list):
|
||||
nodes = extdata[0]
|
||||
ev = extdata[2].Rotation.multVec(extdata[1])
|
||||
nodes.Placement = nodes.Placement.multiply(extdata[2])
|
||||
if IfcType not in ["Slab"]:
|
||||
if obj.Tool:
|
||||
@@ -857,7 +858,7 @@ class _Structure(ArchComponent.Component):
|
||||
elif extdata[1].Length > 0:
|
||||
if hasattr(nodes,"CenterOfMass"):
|
||||
import Part
|
||||
nodes = Part.LineSegment(nodes.CenterOfMass,nodes.CenterOfMass.add(extdata[1])).toShape()
|
||||
nodes = Part.LineSegment(nodes.CenterOfMass,nodes.CenterOfMass.add(ev)).toShape()
|
||||
offset = FreeCAD.Vector()
|
||||
if hasattr(obj,"NodesOffset"):
|
||||
offset = FreeCAD.Vector(0,0,obj.NodesOffset.Value)
|
||||
|
||||
Reference in New Issue
Block a user