I would like to import 2D images to Mathematica and to use them to create meshed regions which can then be used for FEM. I create the images in Adobe illustrator so can either import a vector based image or a bitmap/raster image. Importantly I need to provide different materials properties to the different regions meaning that I need to keep track of which boundary is which.
A typical image would be as follows where we have 3 different regions, and we need to track boundaries between light and medium, light and dark and dark and medium grey. To be consistent of course the boundaries need to match.
Vector graphics can be imported and visualised, however from illustrator I get spline objects which I cannot seem to mesh correctly.
Alternatively I can import bitmap images and then use these together with
ImageMeshhowever this doesn't seem to work for multiple regions? I only get one region and not multiple ones.
At the moment am stuck and would appreciate any hints about how to solve this.