Extracting all geometry of a given material

Did you find anything on the forum about that? This for instance?