Exemple #1
0
 def test_color(self):
   material = iDynTree.Material()
   color = iDynTree.Vector4()
   color[0] = 1.0
   color[1] = 0.0
   color[2] = 0.0
   color[3] = 1.0
   material.color = color
   self.assertEqual(list(material.color), list(color))
Exemple #2
0
 def test_creation(self):
   self.assertIsNotNone(iDynTree.Material())
Exemple #3
0
 def test_material(self):
   mesh = iDynTree.ExternalMesh()
   mesh.material = iDynTree.Material("a_material")
   self.assertEqual(mesh.material.name, "a_material")
Exemple #4
0
 def test_texture(self):
   material = iDynTree.Material()
   material.texture = "a_texture"
   self.assertEqual(material.texture, "a_texture")
Exemple #5
0
 def test_creation_with_name(self):
   material = iDynTree.Material("a_material")
   self.assertEqual(material.name, "a_material")