I am dealing with an obj import from a different program - which I have no control on.
The output is one single mesh, different logical parts of which are assigned different materials.
I would like to separate the mesh by material - so that from the state below:
I could get to one with two separate meshes, one per material.
How is that done - both manually and (ideally) with python/bpy?