BLSURF_Parameters.SetPhySize( 5 )
BLSURF_Parameters.SetGeometricMesh( 1 )
BLSURF_Parameters.SetAngleMesh( 8 )
-# Activate PreCAD
-# REMARK: These lines are the default behaviour from Salome 7.5.0
-# => It is not needed to add them
-#BLSURF_Parameters.SetTopology( 3 )
-#BLSURF_Parameters.SetPreCADMergeEdges( False )
-#BLSURF_Parameters.SetPreCADProcess3DTopology( False )
ok = Mesh_1.Compute()
if not ok:
raise Exception("Error when computing volume mesh")
-## Check that vertices are merged by preCAD preprocessing
-#nodes = []
-#for p in vertices:
- #x, y, z = geompy.PointCoordinates(p)
- #id_node = Mesh_1.FindNodeClosestTo(x, y, z)
- #nodes.append(id_node)
-
-#nodes = set(nodes)
-
-#assert(len(nodes) == 1)
-
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)