<div dir="ltr"><div>I am trying to embed an extruded object within another volume for the generation of a 3D mesh. Below is my .geo file. However, when I do 3D mesh, I get an error "no tetrahedra in region 1 0", which occurs regardless of how many toroid segments I add to the volume. I would appreciate any help? I am at a loss here?<br><br></div>Thanks<br><div><div><br>/////////////////////////<br>// Geometric Inputs<br><br>radius = 3.25;<br>blc = radius/3;<br>Box = 3*radius;<br>lc = radius/5;<br><br>ts = 1;         // height of toroid<br>tx = radius;    // radial width of toroid, measured in centre of ring<br>tl = 0;         // centre of rotation<br><br>/////////////////////////////////////<br>// Large Bounding box<br>X0 = -Box;<br>X1 =  Box;<br>Y0 = -Box;<br>Y1 =  Box;<br>Z0 = -Box;<br>Z1 =  Box;<br><br>pp = newp;<br>Point(pp)    = {X0, Y0, Z0, blc};<br>Point(pp+1)  = {X1, Y0, Z0, blc};<br>Point(pp+2)  = {X1, Y1, Z0, blc};<br>Point(pp+3)  = {X0, Y1, Z0, blc};<br><br>lv = newl;<br>Line(lv) = {pp,pp+1};<br>Line(lv+1) = {pp+1,pp+2};<br>Line(lv+2) = {pp+2,pp+3};<br>Line(lv+3) = {pp+3,pp};<br>Line Loop(lv+4) = {lv, lv+1, lv+2, lv+3};<br><br>bs = news;<br>Plane Surface(bs) = {lv+4};<br>v[] = Extrude {0, 0, Z1-Z0} { Surface{bs}; };<br><br>/////////////////////////////////////////<br>// Make a toroid<br>tpp = newp;<br>Point(tpp  ) = {    tx,    0, 0,  lc};<br>Point(tpp+1) = { ts+tx,    0, 0,  lc};<br>Point(tpp+2) = {    tx,   ts, 0,  lc};<br>Point(tpp+3) = {    tx,  -ts, 0,  lc};<br>Point(tpp+4) = {-ts+tx,    0, 0,  lc};<br><br>cc = newc;<br>Circle(cc  ) = {tpp+1, tpp, tpp+2};<br>Circle(cc+1) = {tpp+2, tpp, tpp+4};<br>Circle(cc+2) = {tpp+4, tpp, tpp+3};<br>Circle(cc+3) = {tpp+3, tpp, tpp+1};<br><br>ll = newll;<br>Line Loop(ll) = {cc, cc+1, cc+2, cc+3};<br>rs = news;<br><br>ps = news;<br>Plane Surface(ps) = {ll};<br><br>tv1[] = Extrude {{0, 1, 0},{-tl,0,0}, 2*Pi/3} { Surface{ps}    ;};<br>tv2[] = Extrude {{0, 1, 0},{-tl,0,0}, 2*Pi/3} { Surface{tv1[0]};};<br>tv3[] = Extrude {{0, 1, 0},{-tl,0,0}, 2*Pi/3} { Surface{tv2[0]};};<br><br>// Not correct?<br>Surface{tv1[0]} In Volume{v[1]};<br>Surface{tv2[0]} In Volume{v[1]};<br>Surface{tv3[0]} In Volume{v[1]};<br><br>Physical Volume(1) = {v[1]};<br></div></div></div>