]> SALOME platform Git repositories - plugins/hexoticplugin.git/commitdiff
Salome HOME
Check that meshing passes OK
authoreap <eap@opencascade.com>
Wed, 27 May 2020 12:37:50 +0000 (15:37 +0300)
committereap <eap@opencascade.com>
Wed, 27 May 2020 12:37:50 +0000 (15:37 +0300)
doc/salome/examples/hexoticdemo.py
doc/salome/examples/hexoticdemo_vl.py
doc/salome/examples/hexoticsubdom1.py
doc/salome/examples/hexoticsubdom2.py
doc/salome/examples/hexoticsubdom3.py
doc/salome/examples/hexoticsubdom4.py

index 7b362daae286838cd3e90cc6176dd32ede7ebeda..baeb7c0348f7a3ea1f89d668e11153007ba9073c 100644 (file)
@@ -41,6 +41,6 @@ MG_Hexa.SetMinMaxSize(10, 20)
 MG_Hexa.SetSizeMap(faces[0], 10)
 
 # compute the mesh
-mghexaMesh.Compute()
+assert mghexaMesh.Compute(), "Meshing fails"
 
 # End of script
index a2d93046dce53d163d918a448cb93094a37e25cb..def14bd13b79580c0502516f35785f5d7c9d61ae 100644 (file)
@@ -28,6 +28,6 @@ MG_Hexa_Parameters.SetHexesMinLevel( 2 )
 MG_Hexa_Parameters.SetHexesMaxLevel( 4 )
 
 # Compute
-Mesh_mghexa_vl.Compute()
+assert Mesh_mghexa_vl.Compute(), "Meshing fails"
 
 # End of script
index 3a6f4dc14a973315dd38632ae46acce50d407460..70bb663fa4872366ca187dbe189dca06af1edfb3 100644 (file)
@@ -53,6 +53,6 @@ g3 = Mesh_mghexa_sd1.GroupOnFilter(SMESH.VOLUME, 'box - big sphere', aFilter3 )
 g3.SetColor( SALOMEDS.Color( 0, 0, 1 ))
 
 # Compute
-Mesh_mghexa_sd1.Compute()
+assert Mesh_mghexa_sd1.Compute(), "Meshing fails"
 
 # End of script
index bc1236550437abb8d0df2153b2014595efb5460e..ffe1c30d165b1851bab174c8f1d127cabec71b01 100644 (file)
@@ -52,7 +52,7 @@ g3 = Mesh_mghexa_sd2.GroupOnFilter(SMESH.VOLUME, 'box - big sphere', aFilter3 )
 g3.SetColor( SALOMEDS.Color( 0, 0, 1 ))
 
 # Compute
-Mesh_mghexa_sd2.Compute()
+assert Mesh_mghexa_sd2.Compute(), "Meshing fails"
 
 # End of script
 
index 0e7a69886c60c0ef03fdb50ef91a04548debbc2b..2b31b1aaa000d87e705d341479916f1459dd5004 100644 (file)
@@ -52,7 +52,6 @@ g3 = Mesh_mghexa_sd3.GroupOnFilter(SMESH.VOLUME, 'box - big sphere', aFilter3 )
 g3.SetColor( SALOMEDS.Color( 0, 0, 1 ))
 
 # Compute
-Mesh_mghexa_sd3.Compute()
+assert Mesh_mghexa_sd3.Compute(), "Meshing fails"
 
 # End of script
-
index bcb24b497b9349ddbd7735ae1ece4b80e0147250..7c3a3eddbd6b19794fbcdeda52b2c5304f7906bd 100644 (file)
@@ -21,6 +21,6 @@ Mesh_mghexa_sd4.Triangle(smeshBuilder.MG_CADSurf)
 Mesh_mghexa_sd4.Hexahedron(smeshBuilder.MG_Hexa).SetMinMaxHexes(4, 8).SetHexoticSdMode( 4 )
 
 # Compute
-Mesh_mghexa_sd4.Compute()
+assert Mesh_mghexa_sd4.Compute(), "Meshing fails"
 
 # End of script