Salome HOME
- Disable PreCAD when using basic periodicity API
[plugins/blsurfplugin.git] / tests / test_periodicity_2D.py
index 13c7fcd36c7d1957b30f2b516b5f29a7a8072bd8..d5a07bc079eadc3801031e707348e70356854932 100644 (file)
@@ -56,9 +56,11 @@ import SMESH
 from salome.smesh import smeshBuilder
 smesh = smeshBuilder.New(salome.myStudy)
 
+from salome.BLSURFPlugin import BLSURFPluginBuilder
+
 Mesh = smesh.Mesh(part, "Mesh")
 
-algo2d = Mesh.Triangle(algo=smeshBuilder.BLSURF)
+algo2d = Mesh.Triangle(algo=smeshBuilder.MG_CADSurf)
 algo2d.SetVerbosity(10)
 #algo2d.SetTopology(smesh.PreCAD)
 algo2d.SetGeometricMesh( 1 )
@@ -66,6 +68,8 @@ algo2d.SetAngleMesh( 4 )
 algo2d.SetPhySize( 8 )
 #algo2d.SetGradation(1.05)
 algo2d.SetOptionValue( 'periodic_tolerance', '1e-2' )
+# Deactivate PreCAD
+algo2d.SetTopology(BLSURFPluginBuilder.FromCAD)
 
 # Periodicity