Extrude creates an uneven surface on a volume
Sorry for the description, but its all I have, so far:
It looks like very small space i.e nano-meters, can upset the extrude function, this can be fixed by rounding to 6 decimal places, but the overall volume of the produced object, seem to be overlapping an object next to it.
ex1[] = Extrude {0,0,4.9999999999999996e-05} {Surface{s8}; Layers{1}; Recombine;};
This is visible we you have a surface of 1cm x 1cm extrude by 50nm, then place another surface right next to it, meshing becomes uneven. Moving the bottom volume down by 1nm stops this from happening.
My best guess!
p0 = newp; Point(p0) = {-0.02, 0.0, 0.0, 0.05}; p1 = newp; Point(p1) = {0.0, 0.0, 0.0, 0.05}; p2 = newp; Point(p2) = {0.0, 0.005, 0.0, 0.05}; p3 = newp; Point(p3) = {-0.02, 0.005, 0.0, 0.05}; l0 = newl; Line(l0) = {p0, p1}; l1 = newl; Line(l1) = {p1, p2}; l2 = newl; Line(l2) = {p2, p3}; l3 = newl; Line(l3) = {p3, p0}; ll0 = newll; Line Loop(ll0) = {l0, l1, l2, l3}; s0 = news; Plane Surface(s0) = {ll0}; ex0[] = Extrude {0,0,4.9999999999999996e-05} {Surface{s0}; Layers{1}; Recombine;};
// fixed with ex0[] = Extrude {0,0,5e-05} {Surface{s0}; Layers{1}; Recombine;};
But not for whole volume.