<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">Dear Gmsh community,</span><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">I am Carlos from Portugal.</span><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">I am working with Gmsh API in order to generate the geometry and automatically mesh spur and helical gears (with a structured mesh). To do so, I make use of setTransfiniteCurve which works perfectly for a 2D situation (see attachement 2D). However, when I extrude the geometry using extrude, one particular area on the tooth doesn't mesh properly (3D_wrong in attachment). The weird thing is, if I use any other gear geometry or even helical gears, the mesh works perfectly both on 2D and 3D. If someone could provide me some hint...</span><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">Another tricky thing that I am facing is making a rotating pattern of the mesh already done. My ideia is to be able to generate the amount of gear teeth according with the type of simulation needs. In certain simulations I use 1 tooth, in others a variable number of tooth up to all the gear (360ยบ). Is there a particular tool in Gmsh API that is efficient in perform this kind of pattern?</span><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">Thank you all.</span><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">Best regards,</span><br style="font-size:16px;color:rgb(0,0,0);font-family:monospace"><span style="font-size:16px;color:rgb(0,0,0);font-family:monospace">Carlos Fernandes</span><br></div></div></div></div>