mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +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 = {
|
type = {
|
||||||
'ifc': None,
|
'ifc': None,
|
||||||
'raw': obj,
|
'raw': obj,
|
||||||
'location': obj.translation,
|
'location': obj.matrix_world.translation,
|
||||||
'up_axis': obj.matrix_world.to_quaternion() @ Vector((0, 0, 1)),
|
'up_axis': self.get_axis(obj.matrix_world, 2),
|
||||||
'forward_axis': obj.matrix_world.to_quaternion() @ Vector((1, 0, 0)),
|
'forward_axis': self.get_axis(obj.matrix_world, 0),
|
||||||
'psets': ['{}/{}'.format(pset.name, pset.file)
|
'psets': ['{}/{}'.format(pset.name, pset.file)
|
||||||
for pset in obj.BIMObjectProperties.psets],
|
for pset in obj.BIMObjectProperties.psets],
|
||||||
'class': self.get_ifc_class(obj.name),
|
'class': self.get_ifc_class(obj.name),
|
||||||
|
|||||||
Reference in New Issue
Block a user