(materials, mtlfilename, basename)
return generate_materials(mtl, materials)
Generate final materials string.
Generate final materials string.
Generate final materials string .
def generate_materials_string(materials, mtlfilename, basename):
    """Generate final materials string.
    """

    if not materials:
        materials = { 'default': 0 }

    mtl = create_materials(materials, mtlfilename, basename)
    return generate_materials(mtl, materials)
def generate_materials_string ( materials , mtlfilename , basename ) : if not materials : materials = { 'default' : 0 } mtl = create_materials ( materials , mtlfilename , basename ) return generate_materials ( mtl , materials )