Bounding Box Bounds

Bounding Box Bounds

Anonymous
Not applicable
1,552 Views
2 Replies
Message 1 of 3

Bounding Box Bounds

Anonymous
Not applicable

Hi Team,

 

I wondering what determines the bounds of the bounding box? I've noticed some of the bounding boxes does not accurately enclose its element - that is, there are a bunch of additional spaces included in the bounding box. 

 

Due to this, it is hard for me to obtain the mid point/ center of the element. Is there a workaround to this? Is it normal for bounding boxes to have additional spaces?

 

Thanks. 

0 Likes
1,553 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

I have no explanation for you. Maybe the elements with enlarged bounding boxes have a weird editing history or something.The bounding boxes are designed to be extremely quick, not precise. If you care about more precise element geometry, the safest way to go is to query the BIM element for its solids instead, or its edges, their vertices, or whatever. 

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

RPTHOMAS108
Mentor
Mentor

You need to show an example of this, I would find it very concerning. The bounding box encompasses the element perhaps not orientated as you expect? i.e. bounding box is always parallel to global coordinate system not the orientation of the element.

0 Likes