parameters: (materials, mtlfilename, basename)
return_statement: return generate_materials(mtl, materials)
docstring: Generate final materials string.
docstring_summary: Generate final materials string.
docstring_tokens: Generate final materials string .
function: 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)
function_tokens: def generate_materials_string ( materials , mtlfilename , basename ) : if not materials : materials = { 'default' : 0 } mtl = create_materials ( materials , mtlfilename , basename ) return generate_materials ( mtl , materials )