<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div><div><div>Dear all,<br><br></div><div>please, ignore my previous message, I sent it unintentionally...<br></div>I have a problem converting my STEP geometry to .geo for use in gmsh. Steps to reproduce:<br></div> - create a cylinder in FreeCAD and save it as a cylinder.step file<br></div> - load cylinder.step in gmsh, save it as cylinder.geo<br></div> - load cylinder.geo in gmsh - creating mesh fails with:<br>Info : Meshing 2D...<br>Info : Meshing surface 1 (Ruled surface, MeshAdapt)<br>Error : Unable to recover an edge 1.68237 -1.0812 && 2 -4.89859e-16 (10/10)<br><br></div><div>I should note that the following (without saving to .geo) works<br></div><div> - load cylinder.step in gmsh and create mesh - OK<br></div><div>but I would like to define the physical entities via GUI and I need geo file to save them (if I understand correctly).<br><br></div><div>Please, can you advise me how to owercome this problem? I am quite new to gmsh, so I may be missing something obvious...<br><br></div><div>remarks:<br></div><div>if I use .brep or .iges instead of .step, it fails with the same message. If I replace the cylinder with a cube, there is no problem.<br><br></div><div>Thanks in advance,<br></div><div>Stepan Roucka<br><br></div><div>The contents of the .geo file are below<br></div><div><br></div>
</div>cl__1 = 1e+22;<br>Point(1) = {2, -4.898587196589001e-16, 10, cl__1};<br>Point(2) = {2, -4.898587196589001e-16, 0, cl__1};<br>p1 = newp;<br>Point(p1 + 1) = {1.902113032590307, 0.6180339887498948, 10};<br>Point(p1 + 2) = {1.618033988749895, 1.175570504584946, 10};<br>Point(p1 + 3) = {1.175570504584946, 1.618033988749895, 10};<br>Point(p1 + 4) = {0.6180339887498949, 1.902113032590307, 10};<br>Point(p1 + 5) = {1.224646799147353e-16, 2, 10};<br>Point(p1 + 6) = {-0.6180339887498947, 1.902113032590307, 10};<br>Point(p1 + 7) = {-1.175570504584946, 1.618033988749895, 10};<br>Point(p1 + 8) = {-1.618033988749895, 1.175570504584946, 10};<br>Point(p1 + 9) = {-1.902113032590307, 0.618033988749895, 10};<br>Point(p1 + 10) = {-2, 2.449293598294706e-16, 10};<br>Point(p1 + 11) = {-1.902113032590307, -0.6180339887498955, 10};<br>Point(p1 + 12) = {-1.618033988749895, -1.175570504584946, 10};<br>Point(p1 + 13) = {-1.175570504584946, -1.618033988749895, 10};<br>Point(p1 + 14) = {-0.6180339887498951, -1.902113032590307, 10};<br>Point(p1 + 15) = {-3.673940397442059e-16, -2, 10};<br>Point(p1 + 16) = {0.6180339887498945, -1.902113032590307, 10};<br>Point(p1 + 17) = {1.175570504584946, -1.618033988749895, 10};<br>Point(p1 + 18) = {1.618033988749895, -1.175570504584947, 10};<br>Point(p1 + 19) = {1.902113032590307, -0.6180339887498952, 10};<br>Spline(1) = {1, p1 + 1, p1 + 2, p1 + 3, p1 + 4, p1 + 5, p1 + 6, p1 + 7, p1 + 8, p1 + 9, p1 + 10, p1 + 11, p1 + 12, p1 + 13, p1 + 14, p1 + 15, p1 + 16, p1 + 17, p1 + 18, p1 + 19, 1};<br>Line(2) = {2, 1};<br>p3 = newp;<br>Point(p3 + 1) = {1.902113032590307, 0.6180339887498948, 0};<br>Point(p3 + 2) = {1.618033988749895, 1.175570504584946, 0};<br>Point(p3 + 3) = {1.175570504584946, 1.618033988749895, 0};<br>Point(p3 + 4) = {0.6180339887498949, 1.902113032590307, 0};<br>Point(p3 + 5) = {1.224646799147353e-16, 2, 0};<br>Point(p3 + 6) = {-0.6180339887498947, 1.902113032590307, 0};<br>Point(p3 + 7) = {-1.175570504584946, 1.618033988749895, 0};<br>Point(p3 + 8) = {-1.618033988749895, 1.175570504584946, 0};<br>Point(p3 + 9) = {-1.902113032590307, 0.618033988749895, 0};<br>Point(p3 + 10) = {-2, 2.449293598294706e-16, 0};<br>Point(p3 + 11) = {-1.902113032590307, -0.6180339887498955, 0};<br>Point(p3 + 12) = {-1.618033988749895, -1.175570504584946, 0};<br>Point(p3 + 13) = {-1.175570504584946, -1.618033988749895, 0};<br>Point(p3 + 14) = {-0.6180339887498951, -1.902113032590307, 0};<br>Point(p3 + 15) = {-3.673940397442059e-16, -2, 0};<br>Point(p3 + 16) = {0.6180339887498945, -1.902113032590307, 0};<br>Point(p3 + 17) = {1.175570504584946, -1.618033988749895, 0};<br>Point(p3 + 18) = {1.618033988749895, -1.175570504584947, 0};<br>Point(p3 + 19) = {1.902113032590307, -0.6180339887498952, 0};<br>Spline(3) = {2, p3 + 1, p3 + 2, p3 + 3, p3 + 4, p3 + 5, p3 + 6, p3 + 7, p3 + 8, p3 + 9, p3 + 10, p3 + 11, p3 + 12, p3 + 13, p3 + 14, p3 + 15, p3 + 16, p3 + 17, p3 + 18, p3 + 19, 2};<br>Line Loop(1) = {1, -2, 3, 2};<br>Ruled Surface(1) = {1};<br>Line Loop(2) = {1};<br>Plane Surface(2) = {2};<br>Line Loop(3) = {3};<br>Plane Surface(3) = {3};<br>Surface Loop(1) = {1, 2, 3};<br>Volume(1) = {1};<br></div>