def test_subtype_surface_reload(self): dt = surfaces.FaceSurface() dt.default.reload(dt, folder_path=os.path.join("surfaces", "outer_skin_4096")) self.assertEqual(dt.get_data_shape('vertices'), (4096, 3)) self.assertEqual(dt.get_data_shape('vertex_normals'), (4096, 3)) self.assertEqual(dt.get_data_shape('triangles'), (8188, 3))
def test_facesurface(self): dt = surfaces.FaceSurface() self.assertEqual(dt.get_data_shape('vertices'), (16384, 3)) self.assertEqual(dt.get_data_shape('vertex_normals'), (16384, 3)) self.assertEqual(dt.get_data_shape('triangles'), (32760, 3))
def test_facesurface(self): dt = surfaces.FaceSurface(load_default=True) self.assertTrue(isinstance(dt, surfaces.FaceSurface)) self.assertEqual(dt.get_data_shape('vertices'), (8614, 3)) self.assertEqual(dt.get_data_shape('vertex_normals'), (0, )) self.assertEqual(dt.get_data_shape('triangles'), (17224, 3))
def test_facesurface(self): dt = surfaces.FaceSurface(load_default=True) assert isinstance(dt, surfaces.FaceSurface) assert dt.get_data_shape('vertices') == (8614, 3) assert dt.get_data_shape('vertex_normals') == (0, ) assert dt.get_data_shape('triangles') == (17224, 3)
def test_facesurface(self): dt = surfaces.FaceSurface(load_file="face_8614.zip") assert isinstance(dt, surfaces.FaceSurface) assert dt.vertices.shape == (8614, 3) assert dt.vertex_normals.shape == (0, ) assert dt.triangles.shape == (17224, 3)