Bounding Box (API bugs)

May 12, 2007 1 Replies

Hi all,



I tried to write a bounding box to measure the overall body size. But I found there are some error on bounding box function in PartDoc object or Body2 object.



Both of them can just measure a part or body which is align the Global Coordinate System. If you try to create a Cube , which is not align the global X axis , Y or Z, the bounding box will return an incorrect values.



Most of real part design will not use default (Top, Front, Right plane) plane, to start the design, some designer will create a rotated plane (let's say 30 degree) first, and then based on this plane to start the design. So, I found there is an incorrect return value in the bounding box function.



Can anybody help me?



Alan



I think you are talking about the API call that generates a bounding box. It has it's limitations and you have just found them.

  1. The bounding box is about 10% larger than the model/assembly it is bounding.
  2. It is aligned with the global coordinate system
  3. It sometimes will bound geometry that is not intended.

TOP

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required