<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.6036" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=427050914-18112010>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=427050914-18112010></SPAN></FONT> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial size=2>I import .stp files
with named selections to automize the meshing and physical element definition.
This is possible as the surface, line and point order in the STEP file is same
as in GMSH. I nevertheless had a problem of small loop lines beeing created by
GMSH and which disabled the line index tracking (very
annoying).</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial size=2>Now the BUG :
in the GUI, when putting the Geometrical tolerance higher than the problematic
line size and than importing the .stp file, the lines are still present (reason
why I searched so long). On the other hand, when defining the "-tol"
command-line option to the same value, the problematic lines disappear in GMSH
:-) !</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial size=2>As I know other
people try to automate this import, here are my important steps
:</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial size=2>.STP <=>
GMSH</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2>#id=ADVANCED_FACE('name',(#child), ...);
<=> Surface id-k1</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2>#id=EDGE_CURVE('name',#child,
...);
<=> Line id-k2</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2>#id=VERTEX_POINT('name',#child);
<=> Point id-k3</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial size=2>Have to disable
Geometry repair options, otherwise the numbering might
change.</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New">Geometry.AutoCoherence=0</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New">Geometry.OCCFixSmallEdges=0</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New">Geometry.OCCFixSmallFaces=0</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New">Geometry.OCCSewFaces=0</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New">Geometry.OCCConnectFaces=0</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New"></FONT></SPAN> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face="Courier New">Have to difine the
geometry tolerance (probably same as cad program tolerance) with command line
option : -tol</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT
face="Courier New"></FONT></SPAN> </DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial size=2>Have fun with GMSH
; I am !</FONT></SPAN></DIV>
<DIV><SPAN class=427050914-18112010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV class=Section1>
<P class=MsoNormal
style="mso-pagination: none; mso-layout-grid-align: none"><SPAN
class=SpellE><SPAN lang=DE-CH
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: DE-CH">Meilleures</SPAN></SPAN><SPAN
lang=DE-CH
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: DE-CH"> <SPAN
class=SpellE>salutations</SPAN></SPAN><SPAN lang=DE-CH
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: DE-CH"> / <SPAN
class=SpellE>Best <SPAN class=SpellE>regards</SPAN><BR></SPAN><B><SPAN
style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Arial"><BR></SPAN></B><B><SPAN
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Arial">Michael</SPAN></B></P></DIV></SPAN></BODY></HTML>