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