I’m encountering some behavior in GetBoundingBox I don’t understand. I have a Brep (it’s a simple rectangular prism) for which GetBoundingBox(true) produces this reasonable bbox (truncated for clarity):
Max: (17.40, 32.70, 3.96) Min: (-14.86, 0, 0)
but GetBoundingBox(false) produces this substantially different one:
Max: (17.40, 32.70, 11.44) Min: (-14.86, 0, 0)
All that extra Z distance seems to be propagated to the Brep’s faces, even for accurate bboxes. Here’s Faces.GetBoundingBox(true):
Max: (0, 13.38, 11.44) Min: (-14.86, 0, 0)
Faces.GetBoundingBox(false) yields the same thing. I’m not sure exactly how the Brep was created (it was given to me by a user), but I know that it spent some time waaaaaay far away from the world origin. I know that this often causes numerics to break down, but I’ve moved it back to the world origin, and the behavior persists. New objects drawn near the origin don’t do this, and the bboxes generated by the BoundingBox command always look fine.
Is there a reason for this other than that it was originally drawn so far away? And either way, is there a way to “fix” the Brep?