compute3DBox