I have code as below

def initialize() :
    gmsh.initialize()
    gmsh.option.setNumber('Mesh.Algorithm3D',1)
    gmsh.option.setNumber("Geometry.OCCFixDegenerated", 1)
    gmsh.option.setNumber("Mesh.SaveGroupsOfNodes", 1)
    gmsh.option.setNumber("Mesh.CharacteristicLengthMax", 2)
gmsh.option.setNumber("Mesh.CharacteristicLengthFromCurvature", 0)
    gmsh.option.setNumber("Mesh.CharacteristicLengthFromPoints", 1)
    gmsh.option.setNumber("Mesh.SaveAll", 0)
    gmsh.option.setNumber("Mesh.OptimizeNetgen", 1)
    gmsh.option.setNumber("Mesh.MaxNumThreads3D", 4)
    gmsh.option.setString("Geometry.OCCTargetUnit", 'mm');
    gmsh.option.setString("General.ErrorFileName", '/tmp/error.log');


def meshObj(obj, dim) :
    obj.Shape.exportBrep("/tmp/Shape2Mesh.brep")
    ab = gmsh.open('/tmp/Shape2Mesh.brep')
    gmsh.model.occ.synchronize()
    print(dir(ab))
    gmsh.model.mesh.generate(dim)
    print('Mesh Generated')
    gmsh.model.mesh.renumberNodes()


I am passing 3 as the value of dim.


One object a Cube works just fine, but another Cube
which seems the same just loops.

Suggestions on how to debug please?


_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to