Height calculation of objects