<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="+1">I have code as below</font></p>
<p><font size="+1">def initialize() :<br>
gmsh.initialize()<br>
gmsh.option.setNumber('Mesh.Algorithm3D',1)<br>
gmsh.option.setNumber("Geometry.OCCFixDegenerated", 1)<br>
gmsh.option.setNumber("Mesh.SaveGroupsOfNodes", 1)<br>
gmsh.option.setNumber("Mesh.CharacteristicLengthMax", 2)<br>
gmsh.option.setNumber("Mesh.CharacteristicLengthFromCurvature",
0)<br>
gmsh.option.setNumber("Mesh.CharacteristicLengthFromPoints",
1)<br>
gmsh.option.setNumber("Mesh.SaveAll", 0)<br>
gmsh.option.setNumber("Mesh.OptimizeNetgen", 1)<br>
gmsh.option.setNumber("Mesh.MaxNumThreads3D", 4)<br>
gmsh.option.setString("Geometry.OCCTargetUnit", 'mm');<br>
gmsh.option.setString("General.ErrorFileName",
'/tmp/error.log');</font></p>
<p><font size="+1"><br>
</font></p>
<p><font size="+1">def meshObj(obj, dim) :<br>
obj.Shape.exportBrep("/tmp/Shape2Mesh.brep")<br>
ab = gmsh.open('/tmp/Shape2Mesh.brep')<br>
gmsh.model.occ.synchronize()<br>
print(dir(ab))<br>
gmsh.model.mesh.generate(dim)<br>
print('Mesh Generated')<br>
gmsh.model.mesh.renumberNodes()</font></p>
<p><font size="+1"><br>
</font></p>
<p><font size="+1">I am passing 3 as the value of dim.</font></p>
<p><font size="+1"><br>
One object a Cube works just fine, but another Cube<br>
which seems the same just loops.<br>
<br>
Suggestions on how to debug please?<br>
</font></p>
<p><font size="+1"><br>
</font></p>
</body>
</html>