From: eap Date: Wed, 27 May 2020 12:37:50 +0000 (+0300) Subject: Check that meshing passes OK X-Git-Tag: V9_6_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=382a299ebdaae94a470d8d505490a5bb1d47522b;p=plugins%2Fhexoticplugin.git Check that meshing passes OK --- diff --git a/doc/salome/examples/hexoticdemo.py b/doc/salome/examples/hexoticdemo.py index 7b362da..baeb7c0 100644 --- a/doc/salome/examples/hexoticdemo.py +++ b/doc/salome/examples/hexoticdemo.py @@ -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 diff --git a/doc/salome/examples/hexoticdemo_vl.py b/doc/salome/examples/hexoticdemo_vl.py index a2d9304..def14bd 100644 --- a/doc/salome/examples/hexoticdemo_vl.py +++ b/doc/salome/examples/hexoticdemo_vl.py @@ -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 diff --git a/doc/salome/examples/hexoticsubdom1.py b/doc/salome/examples/hexoticsubdom1.py index 3a6f4dc..70bb663 100644 --- a/doc/salome/examples/hexoticsubdom1.py +++ b/doc/salome/examples/hexoticsubdom1.py @@ -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 diff --git a/doc/salome/examples/hexoticsubdom2.py b/doc/salome/examples/hexoticsubdom2.py index bc12365..ffe1c30 100644 --- a/doc/salome/examples/hexoticsubdom2.py +++ b/doc/salome/examples/hexoticsubdom2.py @@ -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 diff --git a/doc/salome/examples/hexoticsubdom3.py b/doc/salome/examples/hexoticsubdom3.py index 0e7a698..2b31b1a 100644 --- a/doc/salome/examples/hexoticsubdom3.py +++ b/doc/salome/examples/hexoticsubdom3.py @@ -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 - diff --git a/doc/salome/examples/hexoticsubdom4.py b/doc/salome/examples/hexoticsubdom4.py index bcb24b4..7c3a3ed 100644 --- a/doc/salome/examples/hexoticsubdom4.py +++ b/doc/salome/examples/hexoticsubdom4.py @@ -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