Exemple #1
0
 def test_test_visibility(self):
     # test of simple visibility tests based on bounding box projection
     self.assertTrue(
         geometry.test_visibility(self._obj1, self._cam, self._w, self._h),
         'Visible object appears occluded')
     self.assertFalse(
         geometry.test_visibility(self._obj_non_visible, self._cam, self._w,
                                  self._h),
         'Non visible object appears visible')
Exemple #2
0
 def _test_obj_visibility(self):
     return abr_geom.test_visibility(self.obj, self.cam_obj,
                                     self.config.camera_info.width,
                                     self.config.camera_info.height)