Ejemplo n.º 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))
Ejemplo n.º 2
0
 def test_creation(self):
   self.assertIsNotNone(iDynTree.Material())
Ejemplo n.º 3
0
 def test_material(self):
   mesh = iDynTree.ExternalMesh()
   mesh.material = iDynTree.Material("a_material")
   self.assertEqual(mesh.material.name, "a_material")
Ejemplo n.º 4
0
 def test_texture(self):
   material = iDynTree.Material()
   material.texture = "a_texture"
   self.assertEqual(material.texture, "a_texture")
Ejemplo n.º 5
0
 def test_creation_with_name(self):
   material = iDynTree.Material("a_material")
   self.assertEqual(material.name, "a_material")