mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Update export_ifc.py
Fix translation and axis of type_products
This commit is contained in:
@@ -737,9 +737,9 @@ class IfcParser():
|
||||
type = {
|
||||
'ifc': None,
|
||||
'raw': obj,
|
||||
'location': obj.translation,
|
||||
'up_axis': obj.matrix_world.to_quaternion() @ Vector((0, 0, 1)),
|
||||
'forward_axis': obj.matrix_world.to_quaternion() @ Vector((1, 0, 0)),
|
||||
'location': obj.matrix_world.translation,
|
||||
'up_axis': self.get_axis(obj.matrix_world, 2),
|
||||
'forward_axis': self.get_axis(obj.matrix_world, 0),
|
||||
'psets': ['{}/{}'.format(pset.name, pset.file)
|
||||
for pset in obj.BIMObjectProperties.psets],
|
||||
'class': self.get_ifc_class(obj.name),
|
||||
|
||||
Reference in New Issue
Block a user