Let's say I have a certain number of polygons (given by the coordinates of their points), which make up a geometry in which I want to solve a pde. The number of polygons, as well as their size, can be changed:
p2_x(i) = size_y + (i-1)*size_x;
p3_x(i) = size_y + size_x + (i-1)*size_x;
p4_x(i) = size_x + (i-1)*size_x;
points = [p1_x(i),p1_y(i); p2_x(i),p2_y(i); p3_x(i),p3_y(i); p4_x(i),p4_y(i)];
pg = polyshape(points(:,1),points(:,2));
Each polygon represents a separate domain, and some constant present in the pde can vary between them, so I need a way of labeling parts of the geometry.
Is it possible to somehow convert these polygons into a model geometry, so that they form separate domains?