<span class="gI">Dear Gmsh users,<br><br>I want to build a cylinder volume and I want to setup all normals to be outward for the whole surface. I use the extrusion but the normals for the first extruded surface are inward. Is there any way to reverse normals for the first extruded surface or any other ways to build an extrusion with the outward normals?<br>
<br>The code for the cylinder is below:<br><br>// -- Parameters ---------------------------------------------------------------<br> // left end section center point<br>cx = 0.0;<br>cy = 0.0;<br>cz = 0.0;<br><br> // section radious<br>
r = 0.3;<br><br> // length<br>length = 1.0;<br><br> // characteristic lenght (mesh density)<br>cl = 0.142;<br><br>// -- Points -------------------------------------------------------------------<br>Point(1) = {cx, cy, cz, cl};<br>
Point(2) = {cx, cy + r, cz, cl};<br>Point(3) = {cx, cy - r, cz, cl};<br>Point(4) = {cx, cy, cz + r, cl};<br>Point(5) = {cx, cy, cz - r, cl};<br><br>// -- Curves -------------------------------------------------------------------<br>
Circle(1) = {2, 1, 4};<br>Circle(2) = {4, 1, 3};<br>Circle(3) = {3, 1, 5};<br>Circle(4) = {5, 1, 2};<br><br>// -- Surfaces -----------------------------------------------------------------<br>Line Loop(1) = {1, 2, 3, 4};<br>
Plane Surface(1) = {1};<br><br>Extrude {cx + length, cy, cz} {<br> Surface{1};<br>}<br><br>Sincerely,<br>Alexander<br></span>