Compound Surface extrusion: Invalid boundary mesh
The following code fails
SetFactory("OpenCASCADE");
Mesh.CharacteristicLengthMin = 0.1;
Mesh.CharacteristicLengthMax = 0.1;
s0 = news;
Rectangle(s0) = {-1.0, -1.0, 0.0, 2.0, 2.0};
s1 = news;
Disk(s1) = {-1.2, 0.0, 0.0, 0.5};
bo1[] = BooleanUnion{Surface{s0};Delete;} {Surface{s1};Delete;};
Compound Surface {bo1[]};
ex1[] = Extrude {0,0,0.3} {Surface{bo1[]};};
with
Error : Invalid boundary mesh (segment-facet intersection) on surface 5 surface 1, intersection (-0.791201,-0.285739,1.07795e-12)
Error : No elements in region 1 2 3
It works without the Compound Surface
or when not extruding. Any hint on how to fix this?