Salome HOME
Correction for dual mesh + improve test to check more options
[modules/smesh.git] / doc / examples / create_dual_mesh.py
index d65e9bd16f1273ab759c4a1f572f065ef538d4f8..97d827a9a7d78c1d2af027cc47e4662a4cef2ec0 100644 (file)
@@ -48,11 +48,17 @@ isDone = Mesh_1.Compute()
 if not isDone:
   raise Exception("Error when computing Mesh")
 
-# Creating Dual mesh
+# Creating Dual mesh with projection on shape
 dual_Mesh_1 = smesh.CreateDualMesh( Mesh_1, 'dual_Mesh_1', True)
 
 assert(dual_Mesh_1.NbPolyhedrons() > 0)
 assert(dual_Mesh_1.NbTetras() == 0)
 
+# Creating Dual mesh withour projection on shape
+dual_Mesh_2 = smesh.CreateDualMesh( Mesh_1, 'dual_Mesh_2', False)
+
+assert(dual_Mesh_2.NbPolyhedrons() > 0)
+assert(dual_Mesh_2.NbTetras() == 0)
+
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser()