xBimTeam / XbimGeometry

XbimGeometry contains the CLR interop libraries and the c++ engine used to compute the 3D geometry of models.
https://xbimteam.github.io/
Other
260 stars 132 forks source link

Proper Direction for IFCWALL #292

Closed JohnO3535 closed 4 years ago

JohnO3535 commented 4 years ago

I am trying to place 4 walls with the same origin so that they basically look like a propeller if looked at from above. I cannot seem to figure out how direction works. My understanding was that the values provided should be in percentages of rotation around an axis. In my case the rotation would happen around the z axis. I would therefore assume the direction values would be 0 for x, 0 for y and 0(z wall1), 25(z wall2), 50(z wall3) and 75(z wall4). This does not work. I am including an example file. At this point there are probably some experimental values in there too. But if anyone could help me make sense of the direction values so that I can properly place my walls, it would be greatly appreciated.

Thanks! TestBuilding.ifc.txt

JohnO3535 commented 4 years ago

My understanding of the direction values was incorrect. By using the values from each wall's transform (as defined in sketchup) the rotation of the walls was correct. I was using the rotZ value of the object before.