IfcOpenShell-BIMserver-plugin icon indicating copy to clipboard operation
IfcOpenShell-BIMserver-plugin copied to clipboard

Geometry Rotation

Open jddaigle opened this issue 6 years ago • 2 comments

Hi, it's more a question than an issue... I extracted geometry from an IFC, it works fine, but loaded into a 3D engine, those meshes have no rotation in the Transformation Matrix, only translation (look the attached file). How can I extract the rotation? tks!

image

jddaigle avatar Apr 16 '18 17:04 jddaigle

Both rotation and translation are in the 4x4 matrix. I see there is a transpose operation somewhere in the code [1], maybe you need to transpose the matrix for use in your engine? Other than that we can only guess of course what's going on on your end.

[1] https://github.com/opensourceBIM/IfcOpenShell-BIMserver-plugin/blob/master/src/org/ifcopenshell/IfcGeomServerClientEntity.java#L52

aothms avatar Apr 18 '18 11:04 aothms

oh, my bad, I misinterpreted the matrix. The rotation information is in the matrix. tks!

jddaigle avatar Apr 18 '18 14:04 jddaigle