Does BoundingBoxIntersectsFilter works on element whose boundingbox in completely inside?

Does BoundingBoxIntersectsFilter works on element whose boundingbox in completely inside?

sahin.ikbal
Advocate Advocate
476 Views
1 Reply
Message 1 of 2

Does BoundingBoxIntersectsFilter works on element whose boundingbox in completely inside?

sahin.ikbal
Advocate
Advocate

Does BoundingBoxIntersectsFilter works on element whose boundingbox in completely inside?

As it says boundingboxes needs to be intersecting I am a bit confused about it giving a positive result if bounding box is completely inside.

 

cube.png

0 Likes
477 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor

Good question.

 

I've not had the opportunity to test but if you have found the answer to be yes it does, then perhaps we should think of the bounding box as a solid volume.

 

If you want to check it is or isn't completely inside you can use BoundingBoxIsInsideFilter in conjunction with BoundingIntersectsFilter.  All these filters can also be inverted so many permutations to investigate.

 

You can't really get precise results with either of these because they are aligned with the model coordinate system i.e. a beam at 45 degrees gives a square rather than rectangular bounding box in the XY plane. They are used mainly for initial filtering of elements. They likely exist mirroring some internal function that allows Revit to quickly decide what to generate graphics for.