Exemplo n.º 1
0
 def parse_mtllib(self, args):
     [mtllib] = args
     if not os.path.exists(self.path + mtllib):
         return
     materials = material.MaterialParser(self.path + mtllib,
                                         self.path).materials
     for material_name, material_object in materials.items():
         self.wavefront.materials[material_name] = material_object
Exemplo n.º 2
0
 def parse_mtllib(self, args):
     [mtllib] = args
     materials = material.MaterialParser(mtllib).materials
     for material_name, material_object in materials.items():
         self.wavefront.materials[material_name] = material_object