<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div><span></span></div><div id="yui_3_16_0_1_1422534550853_2459">Hi Christophe,</div><div id="yui_3_16_0_1_1422534550853_2524" dir="ltr">I agree that saving the cad geometry to a .geo file it is not the way to go but at least the surface numbers don't change on reload ;-)</div><div id="yui_3_16_0_1_1422534550853_2523" dir="ltr">I have some other cad geometry where I don't get this problem, which is why perhaps you haven't seen it? have you any other suggestions I could try?</div><div id="yui_3_16_0_1_1422534550853_2522" dir="ltr">Regards</div><div id="yui_3_16_0_1_1422534550853_2521" dir="ltr">Mark<br>  <br></div>  <div id="yui_3_16_0_1_1422534550853_3413" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1422534550853_3412" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1422534550853_3411" dir="ltr"> <hr size="1" id="yui_3_16_0_1_1422534550853_3410">  <font id="yui_3_16_0_1_1422534550853_3414" face="Arial" size="2"> <b><span style="font-weight: bold;">From:</span></b> Christophe Geuzaine <cgeuzaine@ulg.ac.be><br> <b><span style="font-weight: bold;">To:</span></b> Mark Smith <piedycat@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "gmsh@geuz.org" <gmsh@geuz.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, January 29, 2015 11:19 AM<br> <b id="yui_3_16_0_1_1422534550853_3416"><span id="yui_3_16_0_1_1422534550853_3415" style="font-weight: bold;">Subject:</span></b> Re: [Gmsh] GMSH renumbers elemntaty tags on reload<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1422534550853_3417"><br><br clear="none">> On 29 Jan 2015, at 10:45, Mark Smith <<a href="mailto:piedycat@yahoo.com" shape="rect" ymailto="mailto:piedycat@yahoo.com">piedycat@yahoo.com</a>> wrote:<br clear="none">> <br clear="none">> Hi Christophe,<br clear="none">> Unfortunately it makes no difference ;-(<br clear="none">> I used cadexchanger from <a href="http://www.cadexchanger.com/" target="_blank" shape="rect">http://www.cadexchanger.com/ </a>to convert the step file into a .brep file but this suffers with the same problem.<br clear="none">> If is do file: save as and type say file2.geo and with the GEO options box "save physical group lables"  ONLY ticked I get a file with all the points, lines line loops etc. When I lad this the element tag numbers stay fixed, ( it is relatively simple geometry consisting of volumes bounded by plane surfaces) but I cannot get the surfaces to be filled (rendered) but only crossed faces even when I set<br clear="none"><br clear="none">Mark - Do not save your .brep/.step as a .geo! Gmsh is designed to work directly with the native files - "translating" them to .geo is only there for very specific uses or debugging purposes: the .geo CAD kernel is far too rudimentary to handle all the complexities of .step/.brep<br clear="none"><br clear="none"><br clear="none">> Geometry.SurfaceType = 2   this makes it difficult to pick surfaces to put into surface physical groups infact changing Geometry.SurfaceType to 0 1 or 2 make no difference to the way the surfaces are displayed?<br clear="none">> Strangely if I load in my cad geometry file Merge "file.STEP"; etc then the surfaces displayed are as expected if one changes the setting of Geometry.SurfaceType, any ideas?<br clear="none">> <br clear="none">> Thanks in advance.<br clear="none">> Best regards<br clear="none">> Mark<br clear="none">> <br clear="none">>  <br clear="none">> From: Christophe Geuzaine <<a href="mailto:cgeuzaine@ulg.ac.be" shape="rect" ymailto="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>><br clear="none">> To: Mark Smith <<a href="mailto:piedycat@yahoo.com" shape="rect" ymailto="mailto:piedycat@yahoo.com">piedycat@yahoo.com</a>> <br clear="none">> Cc: "<a href="mailto:gmsh@geuz.org" shape="rect" ymailto="mailto:gmsh@geuz.org">gmsh@geuz.org</a>" <<a href="mailto:gmsh@geuz.org" shape="rect" ymailto="mailto:gmsh@geuz.org">gmsh@geuz.org</a>> <br clear="none">> Sent: Wednesday, January 28, 2015 7:11 PM<br clear="none">> Subject: Re: [Gmsh] GMSH renumbers elemntaty tags on reload<br clear="none">> <br clear="none">> <br clear="none">> > On 28 Jan 2015, at 15:36, Mark Smith <<a href="mailto:piedycat@yahoo.com" shape="rect" ymailto="mailto:piedycat@yahoo.com">piedycat@yahoo.com</a>> wrote:<br clear="none">> > <br clear="none">> >  <br clear="none">> > Gmsh version 2.8.5<br clear="none">> > <br clear="none">> > Hi, I load a step file generated in solidworks saved in AP203 or AP214 format and load in into GMSH using a .geo file with the following lines<br clear="none">> > <br clear="none">> > // in gmsh options-geometry make sure the "cut and merge faces" is checked <br clear="none">> > // to remove duplicate entities on import of STEP file<br clear="none">> > Merge "file.STEP";<br clear="none">> > Geometry.AutoCoherence = 1;<br clear="none">> > Coherence;<br clear="none">> > <br clear="none">> > in the options:geometry I get the model to display the surface labels with their elementary tags number, if I hit reload the tag numbers change this make defining physical surfaces impossible since the surfaces shown in the surface physical groups keep changing;-(<br clear="none">> > I have not had this behaviour before and at this moment it is a show stopper, is there a way of preventing this behaviour?<br clear="none">> > <br clear="none">> <br clear="none">> I don't see this behavior when I do the same thing over here (note that "Geometry.AutoCoherence = 1; Coherence;" will have no effect on your STEP data)... Does adding "Delete All;" before the "Merge" command help?<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> > Thanks in advance<br clear="none">> > Mark<br clear="none">> <br clear="none">> > <br clear="none">> > <br clear="none">> > _______________________________________________<br clear="none">> > gmsh mailing list<br clear="none">> > <a href="mailto:gmsh@geuz.org" shape="rect" ymailto="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br clear="none">> > <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank" shape="rect">http://www.geuz.org/mailman/listinfo/gmsh</a><br clear="none">> <br clear="none">> -- <br clear="none">> Prof. Christophe Geuzaine<br clear="none">> University of Liege, Electrical Engineering and Computer Science <br clear="none">> <a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank" shape="rect">http://www.montefiore.ulg.ac.be/~geuzaine</a><div class="qtdSeparateBR"><br><br></div><div class="yqt4788226123" id="yqtfd33451"><br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none"><br clear="none">-- <br clear="none">Prof. Christophe Geuzaine<br clear="none">University of Liege, Electrical Engineering and Computer Science <br clear="none"><a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank" shape="rect">http://www.montefiore.ulg.ac.be/~geuzaine</a><br clear="none"><br clear="none"><br clear="none"></div><br><br></div> </div> </div>  </div></body></html>