3d mesh generation intersection error
Hello, I want to make a cylindrical electrode shape with 2 contacts. my problem is when I want to generate 3d mesh it produces the error "Pyramid top vertex already classified on volume 1 (!= 2) - non-manifold quad boundaries not supported yet" this is my code.
gridsize = 1.0; // define Electrode Point(1) = { 0, 0, 0, gridsize}; Point(2) = { -.2, 0, 0, gridsize}; Point(3) = {-.65, 0, 0, gridsize}; Point(4) = { .65, 0, 0, gridsize}; Point(5) = { 0, .65, 0, gridsize}; Point(6) = { 0,-.65, 0, gridsize}; Ellipse(1) = {5,1,2,3}; Ellipse(2) = {4,1,2,5}; Ellipse(3) = {6,1,2,3}; Ellipse(4) = {4,1,2,6};
Line Loop(7) = {1,-3,-4,2}; Plane Surface(1) = {7};
s0[] = Extrude{0, 0, 1.5} {Surface{1};}; Transfinite Surface {s0}; Recombine Surface {s0};
s1[] = Extrude{0, 0, .5} {Surface{s0};}; Transfinite Surface {s1}; Recombine Surface {s1};
Does anybody knows whats the problem?