I have just realised that the getbbox function gets me the bounding box according to global coordinates. This means that when I use it to calculate size of objects that are rotated from XYZ axes I get incorrect results. Is there any way to use this on the local coordinates? E.g. is there an equivalent of vertices = getvertices(geometry) getting the vertices as per local object's coordinates?
Last edit: PeterPetersen 2023-09-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Following further investigation the issue seems to be somewhat more complex. For some strange reason IfcWalls and IfcDoors (rotated from XY axes) are calculated correctly, whereas IfcSlabs, Beams etc. are calculated wrong when using exactly the same formula. Would be greatful for any hints! Below the code I am using:
I have just realised that the getbbox function gets me the bounding box according to global coordinates. This means that when I use it to calculate size of objects that are rotated from XYZ axes I get incorrect results. Is there any way to use this on the local coordinates? E.g. is there an equivalent of vertices = getvertices(geometry) getting the vertices as per local object's coordinates?
Last edit: PeterPetersen 2023-09-15
Following further investigation the issue seems to be somewhat more complex. For some strange reason IfcWalls and IfcDoors (rotated from XY axes) are calculated correctly, whereas IfcSlabs, Beams etc. are calculated wrong when using exactly the same formula. Would be greatful for any hints! Below the code I am using:
Last edit: PeterPetersen 2023-09-15