Salome HOME
Fix the option remove_tiny_uv_edges to use the new advanced options mechanism
[plugins/blsurfplugin.git] / tests / test_precad_intersections.py
index f492dba1e3bb0a29a13d5517f2451b9cfb78531e..47eef3df6b88b55a976134b9d180e26afb331178 100644 (file)
@@ -49,6 +49,7 @@ BLSURF_Parameters = BLSURF_1.Parameters()
 BLSURF_Parameters.SetPhySize( 5 )
 BLSURF_Parameters.SetPreCADMergeEdges( True )
 BLSURF_Parameters.SetPreCADProcess3DTopology( True )
+BLSURF_Parameters.SetPreCADOptionValue( 'remove_tiny_uv_edges', 'yes' )
 
 Mesh_1.Compute()
 
@@ -61,9 +62,9 @@ for p in vertices:
 
 nodes = list(set(nodes))
 
-Mesh_1.MakeGroupByIds("nodes", SMESH.NODE, nodes)
+nodesGroup = Mesh_1.MakeGroupByIds("nodes", SMESH.NODE, nodes)
 
-assert(len(nodes) == 1)
+assert nodesGroup.Size() == 1, nodesGroup.GetIDs()
 
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
+  salome.sg.updateObjBrowser(True)