Revert "fixing ComputeBoundingBox function"

This reverts commit c8b5daae3c8c027506a9646b8b17b4680a0673f7.