D'oh! Missed it! :D
D'oh! Missed it! :D
I am a beginner Python/IFC user. All of this is pretty overwhelming, however I am enjoying at the same time. I have been able to extract some data, but the geometry stuff is still pretty new to me.
I also am trying to find out how to find all windows belonging to a certain space. As I understand, this not easy. I was wondering, is it possible to search for the closest space in direction (and opposite direction) of the face of a window?
I also tried @aothms last reply. I am getting errors at the "setup BVH tree":
'tree' object has no attribute 'add_iterator'
However I found https://wiki.osarch.org/index.php?title=IfcOpenShell_code_examples
I think I should put some time in understanding geom I guess :)
'tree' object has no attribute 'add_iterator'
You're likely running an older version. Try https://github.com/IfcOpenBot/IfcOpenShell/commit/883b8a523c63027f2f6c91650385d47edba5521b#comments
search for the closest space in direction (and opposite direction) of the face of a window?
There's quite a few adhoc things in the latest version of the tree. You can try:
tree.ray_intersect() https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcgeom/IfcGeomTree.h#L435
example usage in python
Login or Register to reply.