From 33cf7a01f2e029732ac9d0f3873860b4bd7ba0f0 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 12 Apr 2022 19:13:50 +0300 Subject: [PATCH] 29171 Move examples to test folder --- src/SMESH_SWIG/CMakeLists.txt | 72 +------ src/SMESH_SWIG/SMESH_shared_modules.py | 44 ---- src/SMESH_SWIG/YACS_geomesh0.py | 192 ------------------ test/CMakeLists.txt | 2 +- {src/SMESH_SWIG => test}/PAL_MESH_041_mesh.py | 0 {src/SMESH_SWIG => test}/PAL_MESH_043_2D.py | 0 {src/SMESH_SWIG => test}/PAL_MESH_043_3D.py | 0 .../SMESH_AdvancedEditor.py | 0 .../SMESH_SWIG => test}/SMESH_BelongToGeom.py | 0 .../SMESH_BuildCompound.py | 0 .../SMESH_GroupFromGeom.py | 0 .../SMESH_GroupFromGeom2.py | 0 .../SMESH_GroupLyingOnGeom.py | 0 {src/SMESH_SWIG => test}/SMESH_Nut.py | 0 .../SMESH_Partition1_tetra.py | 0 {src/SMESH_SWIG => test}/SMESH_Sphere.py | 0 {src/SMESH_SWIG => test}/SMESH_blocks.py | 0 {src/SMESH_SWIG => test}/SMESH_box.py | 0 {src/SMESH_SWIG => test}/SMESH_box2_tetra.py | 0 {src/SMESH_SWIG => test}/SMESH_box3_tetra.py | 0 {src/SMESH_SWIG => test}/SMESH_box_tetra.py | 0 {src/SMESH_SWIG => test}/SMESH_controls.py | 0 .../SMESH_demo_hexa2_upd.py | 0 {src/SMESH_SWIG => test}/SMESH_fixation.py | 0 .../SMESH_fixation_hexa.py | 0 .../SMESH_fixation_netgen.py | 0 .../SMESH_fixation_tetra.py | 0 {src/SMESH_SWIG => test}/SMESH_flight_skin.py | 2 +- {src/SMESH_SWIG => test}/SMESH_freebord.py | 0 {src/SMESH_SWIG => test}/SMESH_hexaedre.py | 0 {src/SMESH_SWIG => test}/SMESH_mechanic.py | 0 .../SMESH_mechanic_editor.py | 0 .../SMESH_mechanic_netgen.py | 0 .../SMESH_mechanic_tetra.py | 0 {src/SMESH_SWIG => test}/SMESH_reg.py | 0 {src/SMESH_SWIG => test}/SMESH_test.py | 0 {src/SMESH_SWIG => test}/SMESH_test0.py | 0 {src/SMESH_SWIG => test}/SMESH_test1.py | 0 .../SMESH_test1_AndDisplay.py | 0 {src/SMESH_SWIG => test}/SMESH_test2.py | 0 {src/SMESH_SWIG => test}/SMESH_test3.py | 0 {src/SMESH_SWIG => test}/SMESH_test4.py | 0 {src/SMESH_SWIG => test}/SMESH_test5.py | 47 ++--- {src/SMESH_SWIG => test}/ex00_all.py | 0 {src/SMESH_SWIG => test}/ex01_cube2build.py | 0 .../ex02_cube2primitive.py | 0 .../ex03_cube2partition.py | 0 .../ex04_cube5tetraHexa.py | 0 {src/SMESH_SWIG => test}/ex05_hole1build.py | 0 {src/SMESH_SWIG => test}/ex06_hole1boolean.py | 0 .../ex07_hole1partition.py | 0 {src/SMESH_SWIG => test}/ex08_hole2build.py | 0 {src/SMESH_SWIG => test}/ex09_grid4build.py | 0 .../SMESH_SWIG => test}/ex10_grid4geometry.py | 0 .../ex11_grid3partition.py | 0 .../ex12_grid17partition.py | 0 {src/SMESH_SWIG => test}/ex13_hole1partial.py | 0 {src/SMESH_SWIG => test}/ex14_cyl1holed.py | 0 {src/SMESH_SWIG => test}/ex15_cyl2geometry.py | 0 .../ex16_cyl2complementary.py | 0 {src/SMESH_SWIG => test}/ex17_dome1.py | 0 {src/SMESH_SWIG => test}/ex18_dome2.py | 0 {src/SMESH_SWIG => test}/ex19_sphereINcube.py | 0 {src/SMESH_SWIG => test}/ex21_lamp.py | 0 {src/SMESH_SWIG => test}/ex24_cylinder.py | 0 {src/SMESH_SWIG => test}/ex29_refine.py | 17 +- {src/SMESH_SWIG => test}/ex30_groupsOp.py | 0 {src/SMESH_SWIG => test}/ex30_tepal.py | 0 {src/SMESH_SWIG => test}/ex31_dimGroup.py | 0 test/tests.set | 74 ++++++- 70 files changed, 110 insertions(+), 340 deletions(-) delete mode 100644 src/SMESH_SWIG/SMESH_shared_modules.py delete mode 100644 src/SMESH_SWIG/YACS_geomesh0.py rename {src/SMESH_SWIG => test}/PAL_MESH_041_mesh.py (100%) rename {src/SMESH_SWIG => test}/PAL_MESH_043_2D.py (100%) rename {src/SMESH_SWIG => test}/PAL_MESH_043_3D.py (100%) rename {src/SMESH_SWIG => test}/SMESH_AdvancedEditor.py (100%) rename {src/SMESH_SWIG => test}/SMESH_BelongToGeom.py (100%) rename {src/SMESH_SWIG => test}/SMESH_BuildCompound.py (100%) rename {src/SMESH_SWIG => test}/SMESH_GroupFromGeom.py (100%) rename {src/SMESH_SWIG => test}/SMESH_GroupFromGeom2.py (100%) rename {src/SMESH_SWIG => test}/SMESH_GroupLyingOnGeom.py (100%) rename {src/SMESH_SWIG => test}/SMESH_Nut.py (100%) rename {src/SMESH_SWIG => test}/SMESH_Partition1_tetra.py (100%) rename {src/SMESH_SWIG => test}/SMESH_Sphere.py (100%) rename {src/SMESH_SWIG => test}/SMESH_blocks.py (100%) rename {src/SMESH_SWIG => test}/SMESH_box.py (100%) rename {src/SMESH_SWIG => test}/SMESH_box2_tetra.py (100%) rename {src/SMESH_SWIG => test}/SMESH_box3_tetra.py (100%) rename {src/SMESH_SWIG => test}/SMESH_box_tetra.py (100%) rename {src/SMESH_SWIG => test}/SMESH_controls.py (100%) rename {src/SMESH_SWIG => test}/SMESH_demo_hexa2_upd.py (100%) rename {src/SMESH_SWIG => test}/SMESH_fixation.py (100%) rename {src/SMESH_SWIG => test}/SMESH_fixation_hexa.py (100%) rename {src/SMESH_SWIG => test}/SMESH_fixation_netgen.py (100%) rename {src/SMESH_SWIG => test}/SMESH_fixation_tetra.py (100%) rename {src/SMESH_SWIG => test}/SMESH_flight_skin.py (98%) rename {src/SMESH_SWIG => test}/SMESH_freebord.py (100%) rename {src/SMESH_SWIG => test}/SMESH_hexaedre.py (100%) rename {src/SMESH_SWIG => test}/SMESH_mechanic.py (100%) rename {src/SMESH_SWIG => test}/SMESH_mechanic_editor.py (100%) rename {src/SMESH_SWIG => test}/SMESH_mechanic_netgen.py (100%) rename {src/SMESH_SWIG => test}/SMESH_mechanic_tetra.py (100%) rename {src/SMESH_SWIG => test}/SMESH_reg.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test0.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test1.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test1_AndDisplay.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test2.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test3.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test4.py (100%) rename {src/SMESH_SWIG => test}/SMESH_test5.py (65%) rename {src/SMESH_SWIG => test}/ex00_all.py (100%) rename {src/SMESH_SWIG => test}/ex01_cube2build.py (100%) rename {src/SMESH_SWIG => test}/ex02_cube2primitive.py (100%) rename {src/SMESH_SWIG => test}/ex03_cube2partition.py (100%) rename {src/SMESH_SWIG => test}/ex04_cube5tetraHexa.py (100%) rename {src/SMESH_SWIG => test}/ex05_hole1build.py (100%) rename {src/SMESH_SWIG => test}/ex06_hole1boolean.py (100%) rename {src/SMESH_SWIG => test}/ex07_hole1partition.py (100%) rename {src/SMESH_SWIG => test}/ex08_hole2build.py (100%) rename {src/SMESH_SWIG => test}/ex09_grid4build.py (100%) rename {src/SMESH_SWIG => test}/ex10_grid4geometry.py (100%) rename {src/SMESH_SWIG => test}/ex11_grid3partition.py (100%) rename {src/SMESH_SWIG => test}/ex12_grid17partition.py (100%) rename {src/SMESH_SWIG => test}/ex13_hole1partial.py (100%) rename {src/SMESH_SWIG => test}/ex14_cyl1holed.py (100%) rename {src/SMESH_SWIG => test}/ex15_cyl2geometry.py (100%) rename {src/SMESH_SWIG => test}/ex16_cyl2complementary.py (100%) rename {src/SMESH_SWIG => test}/ex17_dome1.py (100%) rename {src/SMESH_SWIG => test}/ex18_dome2.py (100%) rename {src/SMESH_SWIG => test}/ex19_sphereINcube.py (100%) rename {src/SMESH_SWIG => test}/ex21_lamp.py (100%) rename {src/SMESH_SWIG => test}/ex24_cylinder.py (100%) rename {src/SMESH_SWIG => test}/ex29_refine.py (96%) rename {src/SMESH_SWIG => test}/ex30_groupsOp.py (100%) rename {src/SMESH_SWIG => test}/ex30_tepal.py (100%) rename {src/SMESH_SWIG => test}/ex31_dimGroup.py (100%) diff --git a/src/SMESH_SWIG/CMakeLists.txt b/src/SMESH_SWIG/CMakeLists.txt index bd3a578d4..d40b4a17c 100644 --- a/src/SMESH_SWIG/CMakeLists.txt +++ b/src/SMESH_SWIG/CMakeLists.txt @@ -32,79 +32,11 @@ include_directories( ) # scripts / static -SET(_bin_SCRIPTS - ex00_all.py - ex01_cube2build.py - ex02_cube2primitive.py - ex03_cube2partition.py - ex04_cube5tetraHexa.py - ex05_hole1build.py - ex06_hole1boolean.py - ex07_hole1partition.py - ex08_hole2build.py - ex09_grid4build.py - ex10_grid4geometry.py - ex11_grid3partition.py - ex12_grid17partition.py - ex13_hole1partial.py - ex14_cyl1holed.py - ex15_cyl2geometry.py - ex16_cyl2complementary.py - ex17_dome1.py - ex18_dome2.py - ex19_sphereINcube.py - ex21_lamp.py - ex24_cylinder.py - ex29_refine.py - ex30_tepal.py - ex30_groupsOp.py - ex31_dimGroup.py - SMESH_test.py - SMESH_test0.py - SMESH_test1.py - SMESH_test1_AndDisplay.py - SMESH_test2.py - SMESH_test3.py - SMESH_test4.py - SMESH_test5.py - SMESH_mechanic.py - SMESH_mechanic_tetra.py - SMESH_mechanic_editor.py - SMESH_mechanic_netgen.py - SMESH_fixation.py - SMESH_fixation_hexa.py - SMESH_fixation_tetra.py - SMESH_fixation_netgen.py - SMESH_box_tetra.py - SMESH_box2_tetra.py - SMESH_box3_tetra.py - SMESH_flight_skin.py - SMESH_Partition1_tetra.py - SMESH_controls.py - SMESH_freebord.py - SMESH_blocks.py - SMESH_BelongToGeom.py - SMESH_GroupFromGeom2.py - SMESH_box.py - SMESH_demo_hexa2_upd.py - SMESH_hexaedre.py - SMESH_Sphere.py - SMESH_GroupFromGeom.py - SMESH_Nut.py - SMESH_GroupLyingOnGeom.py - SMESH_AdvancedEditor.py - SMESH_BuildCompound.py - PAL_MESH_041_mesh.py - PAL_MESH_043_2D.py - PAL_MESH_043_3D.py - SMESH_reg.py - smesh_selection.py - YACS_geomesh0.py -) SET(smesh_SCRIPTS smeshBuilder.py smesh_algorithm.py + smesh_selection.py ) SET(StdMeshers_SCRIPTS @@ -135,7 +67,5 @@ install(FILES ${SMeshHelper_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS} EXTRA_DPYS "${SWIG_MODULE_SMeshHelper_REAL_NAME}") # --- rules --- -SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON} DEF_PERMS) SALOME_INSTALL_SCRIPTS("${smesh_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/smesh DEF_PERMS) SALOME_INSTALL_SCRIPTS("${StdMeshers_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/StdMeshers DEF_PERMS) -SALOME_INSTALL_SCRIPTS(SMESH_shared_modules.py ${SALOME_INSTALL_PYTHON}/shared_modules DEF_PERMS) diff --git a/src/SMESH_SWIG/SMESH_shared_modules.py b/src/SMESH_SWIG/SMESH_shared_modules.py deleted file mode 100644 index c1f3cea99..000000000 --- a/src/SMESH_SWIG/SMESH_shared_modules.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE -# -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -""" - -""" - -# force SMESH importation at interpreter initialization -# see salome_shared_modules.py -# (avoids incomplete import at run time) - -from launchConfigureParser import verbose - -if verbose(): print("============== import SMESH =======================") - -import SMESH - -# this function is required - -def init_shared_modules(): - """ - This function initializes shared modules that need to be - """ - pass diff --git a/src/SMESH_SWIG/YACS_geomesh0.py b/src/SMESH_SWIG/YACS_geomesh0.py deleted file mode 100644 index 05a235acb..000000000 --- a/src/SMESH_SWIG/YACS_geomesh0.py +++ /dev/null @@ -1,192 +0,0 @@ -#!/usr/bin/env python3 -# Copyright (C) 2018-2021 CEA/DEN, EDF R&D, OPEN CASCADE -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# test used in YACS, ForEachLoop - -def geomesh(l0, r0, h0, d0, d1, my_container, direc): - print("Géometrie et maillage barre : (l0, r0, h0, d0, d1)=", (l0, r0, h0, d0, d1)) - - import sys - import salome - salome.salome_init() - import GEOM - from salome.geom import geomBuilder - import math - import os - import SALOMEDS - import SMESH - from salome.smesh import smeshBuilder - - my_container.load_component_Library("GEOM") - #engineGeom = my_container.create_component_instance("GEOM") - engineGeom = my_container.load_impl("GEOM","") - geompy = geomBuilder.New(engineGeom) - my_container.load_component_Library("SMESH") - #engineSmesh = my_container.create_component_instance("SMESH") - engineSmesh = my_container.load_impl("SMESH","") - smesh = smeshBuilder.New(engineSmesh,engineGeom) - print("instances Names:", engineGeom.instanceName, engineSmesh.instanceName) - print("instances:", engineGeom, engineSmesh) - print("builders:", geompy, smesh) - - volume = (2.*l0*r0 + 0.75*math.pi*r0*r0)*h0 - O = geompy.MakeVertex(0, 0, 0) - OX = geompy.MakeVectorDXDYDZ(1, 0, 0) - OY = geompy.MakeVectorDXDYDZ(0, 1, 0) - OZ = geompy.MakeVectorDXDYDZ(0, 0, 1) - Vertex_1 = geompy.MakeVertex(-l0, -r0, 0) - Vertex_2 = geompy.MakeVertex(-l0-r0, 0, 0) - Vertex_3 = geompy.MakeVertex(-l0, r0, 0) - Vertex_4 = geompy.MakeVertex(l0, r0, 0) - Vertex_5 = geompy.MakeVertex(l0+r0, 0, 0) - Vertex_6 = geompy.MakeVertex(l0, -r0, 0) - Arc_1 = geompy.MakeArc(Vertex_1, Vertex_2, Vertex_3) - Arc_2 = geompy.MakeArc(Vertex_4, Vertex_5, Vertex_6) - Line_1 = geompy.MakeLineTwoPnt(Vertex_3, Vertex_4) - Line_2 = geompy.MakeLineTwoPnt(Vertex_6, Vertex_1) - Face_1 = geompy.MakeFaceWires([Arc_1, Arc_2, Line_1, Line_2], 1) - barre0 = geompy.MakePrismVecH(Face_1, OZ, h0) - Vertex_1a = geompy.MakeVertex(-l0, -r0/2, 0) - Vertex_2a = geompy.MakeVertex(-l0-r0/2, 0, 0) - Vertex_3a = geompy.MakeVertex(-l0, r0/2, 0) - Vertex_4a = geompy.MakeVertex(l0, r0/2, 0) - Vertex_5a = geompy.MakeVertex(l0+r0/2, 0, 0) - Vertex_6a = geompy.MakeVertex(l0, -r0/2, 0) - Arc_1a = geompy.MakeArc(Vertex_1a, Vertex_2a, Vertex_3a) - Arc_2a = geompy.MakeArc(Vertex_4a, Vertex_5a, Vertex_6a) - Line_1a = geompy.MakeLineTwoPnt(Vertex_3a, Vertex_4a) - Line_2a = geompy.MakeLineTwoPnt(Vertex_6a, Vertex_1a) - Face_1a = geompy.MakeFaceWires([Arc_1a, Arc_2a, Line_1a, Line_2a], 1) - barrea = geompy.MakePrismVecH(Face_1a, OZ, h0) - barreb = geompy.MakeCut(barre0, barrea) - Plane_1 = geompy.MakePlane(Vertex_1, OX, 2000) - Plane_2 = geompy.MakePlane(Vertex_6, OX, 2000) - barre = geompy.MakePartition([barreb], [Plane_1, Plane_2], [], [], geompy.ShapeType["SOLID"], 0, [], 0) - v1 = geompy.MakeVertex(-l0-r0, 0, h0/2.) - v2 = geompy.MakeVertex(l0+r0, 0, h0/2.) - f1 = geompy.GetShapesNearPoint(barre, v1, geompy.ShapeType["FACE"]) - f2 = geompy.GetShapesNearPoint(barre, v2, geompy.ShapeType["FACE"]) - #f1 = geompy.CreateGroup(barre, geompy.ShapeType["FACE"]) - #geompy.UnionIDs(f1, [3]) - #f2 = geompy.CreateGroup(barre, geompy.ShapeType["FACE"]) - #geompy.UnionIDs(f2, [20]) - - Auto_group_for_Sub_mesh_1 = geompy.CreateGroup(barre, geompy.ShapeType["FACE"]) - geompy.UnionList(Auto_group_for_Sub_mesh_1, [f1, f2]) - nom = r'barre_l_{:03d}__r_{:05.2f}__h_{:05.2f}__d0_{:05.2f}__d1_{:05.2f}'.format(int(l0), r0, h0, d0, d1) - nombrep = nom + ".brep" - geompy.ExportBREP(barre, direc + os.sep + nombrep ) - props = geompy.BasicProperties(barre) - geomvol = props[2] - - #geompy.addToStudy( barre, 'barre' ) - #geompy.addToStudyInFather( barre, f1, 'f1' ) - #geompy.addToStudyInFather( barre, f2, 'f2' ) - - smesh.SetEnablePublish( False ) - - isTetra = False - barre_1 = smesh.Mesh(barre) - # SO = salome.myStudy.FindObjectIOR(salome.myStudy.ConvertObjectToIOR(barre_1.GetMesh())) - # if SO: - # print ("_______",SO.GetID(),SO.GetName()) - # else: - # print ("_______NO_SO!!!") - if (isTetra): - NETGEN_1D_2D_3D = barre_1.Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D) - NETGEN_3D_Parameters_1 = NETGEN_1D_2D_3D.Parameters() - NETGEN_3D_Parameters_1.SetMaxSize( d0 ) - NETGEN_3D_Parameters_1.SetSecondOrder( 0 ) - NETGEN_3D_Parameters_1.SetOptimize( 1 ) - NETGEN_3D_Parameters_1.SetFineness( 3 ) - NETGEN_3D_Parameters_1.SetChordalError( 0.1 ) - NETGEN_3D_Parameters_1.SetChordalErrorEnabled( 0 ) - NETGEN_3D_Parameters_1.SetMinSize( d0 ) - NETGEN_3D_Parameters_1.SetUseSurfaceCurvature( 1 ) - NETGEN_3D_Parameters_1.SetFuseEdges( 1 ) - NETGEN_3D_Parameters_1.SetQuadAllowed( 0 ) - NETGEN_1D_2D = barre_1.Triangle(algo=smeshBuilder.NETGEN_1D2D,geom=Auto_group_for_Sub_mesh_1) - NETGEN_2D_Parameters_1 = NETGEN_1D_2D.Parameters() - NETGEN_2D_Parameters_1.SetMaxSize( d1 ) - NETGEN_2D_Parameters_1.SetSecondOrder( 0 ) - NETGEN_2D_Parameters_1.SetOptimize( 1 ) - NETGEN_2D_Parameters_1.SetFineness( 3 ) - NETGEN_2D_Parameters_1.SetChordalError( 0.1 ) - NETGEN_2D_Parameters_1.SetChordalErrorEnabled( 0 ) - NETGEN_2D_Parameters_1.SetMinSize( d1 ) - NETGEN_2D_Parameters_1.SetUseSurfaceCurvature( 1 ) - NETGEN_2D_Parameters_1.SetFuseEdges( 1 ) - NETGEN_2D_Parameters_1.SetQuadAllowed( 0 ) - else: - Regular_1D = barre_1.Segment() - Number_of_Segments_1 = Regular_1D.NumberOfSegments(15) - Quadrangle_2D = barre_1.Quadrangle(algo=smeshBuilder.QUADRANGLE) - Hexa_3D = barre_1.Hexahedron(algo=smeshBuilder.Hexa) - isDone = barre_1.Compute() - - f1_1 = barre_1.GroupOnGeom(f1,'f1',SMESH.FACE) - f2_1 = barre_1.GroupOnGeom(f2,'f2',SMESH.FACE) - smesh.SetName(barre_1, nom) - nommed = nom + ".med" - barre_1.ExportMED( direc + os.sep + nommed, auto_groups=0, minor=0, overwrite=1, meshPart=None, autoDimension=1 ) - measure = smesh.CreateMeasurements() - meshvol = measure.Volume(barre_1.mesh) - print("Maillage publié : ", direc + os.sep + nommed) - clearMesh(barre_1, salome.myStudy, nom) - deltag = abs(geomvol - volume)/volume - deltam = abs(meshvol - geomvol)/geomvol - delta = abs(meshvol - volume)/volume - print("volumes:", volume, geomvol, meshvol, deltag, deltam) - assert(deltag < 1.e-5) - assert(deltam < 2.e-3) - #import time - #time.sleep(30) - return delta - - -def clearMesh(theMesh, theStudy, aName): - theMesh.Clear() - aMesh = theMesh.GetMesh() - aMesh.UnRegister() - # aStudyBuilder = theStudy.NewBuilder() - # SO = theStudy.FindObjectIOR(theStudy.ConvertObjectToIOR(aMesh)) - # objects_to_unpublish = [SO] - # refs = theStudy.FindDependances(SO) - # objects_to_unpublish += refs - # for o in objects_to_unpublish: - # if o is not None: - # aStudyBuilder.RemoveObjectWithChildren(o) - print("clearMesh done:", aName) - -def genere(r0, h0, my_container, direc): - l0 = 50.0 - d0 = min(r0/2., h0/6.) - d1 = d0/2. - res = geomesh(l0, r0, h0, d0, d1, my_container, direc) - return res - -def genere2(r0h0, my_container, direc): - l0 = 50.0 - r0 = r0h0[0] - h0 = r0h0[1] - d0 = min(r0/2., h0/6.) - d1 = d0/2. - res = geomesh(l0, r0, h0, d0, d1, my_container, direc) - return res diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3aa8cb5db..f038a6aa6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -32,7 +32,7 @@ SALOME_CONFIGURE_FILE(CTestTestfileInstall.cmake ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CTestTestfile.cmake INSTALL ${TEST_INSTALL_DIRECTORY}) INSTALL(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY}) -INSTALL(FILES ${GOOD_TESTS} ${BAD_TESTS} ${SESSION_FREE_TESTS} DESTINATION ${TEST_INSTALL_DIRECTORY}) +INSTALL(FILES ${GOOD_TESTS} ${BAD_TESTS} ${SESSION_FREE_TESTS} ${OTHER_FILES} DESTINATION ${TEST_INSTALL_DIRECTORY}) INSTALL(DIRECTORY data DESTINATION ${TEST_INSTALL_DIRECTORY}) # Add tests for 'make test' diff --git a/src/SMESH_SWIG/PAL_MESH_041_mesh.py b/test/PAL_MESH_041_mesh.py similarity index 100% rename from src/SMESH_SWIG/PAL_MESH_041_mesh.py rename to test/PAL_MESH_041_mesh.py diff --git a/src/SMESH_SWIG/PAL_MESH_043_2D.py b/test/PAL_MESH_043_2D.py similarity index 100% rename from src/SMESH_SWIG/PAL_MESH_043_2D.py rename to test/PAL_MESH_043_2D.py diff --git a/src/SMESH_SWIG/PAL_MESH_043_3D.py b/test/PAL_MESH_043_3D.py similarity index 100% rename from src/SMESH_SWIG/PAL_MESH_043_3D.py rename to test/PAL_MESH_043_3D.py diff --git a/src/SMESH_SWIG/SMESH_AdvancedEditor.py b/test/SMESH_AdvancedEditor.py similarity index 100% rename from src/SMESH_SWIG/SMESH_AdvancedEditor.py rename to test/SMESH_AdvancedEditor.py diff --git a/src/SMESH_SWIG/SMESH_BelongToGeom.py b/test/SMESH_BelongToGeom.py similarity index 100% rename from src/SMESH_SWIG/SMESH_BelongToGeom.py rename to test/SMESH_BelongToGeom.py diff --git a/src/SMESH_SWIG/SMESH_BuildCompound.py b/test/SMESH_BuildCompound.py similarity index 100% rename from src/SMESH_SWIG/SMESH_BuildCompound.py rename to test/SMESH_BuildCompound.py diff --git a/src/SMESH_SWIG/SMESH_GroupFromGeom.py b/test/SMESH_GroupFromGeom.py similarity index 100% rename from src/SMESH_SWIG/SMESH_GroupFromGeom.py rename to test/SMESH_GroupFromGeom.py diff --git a/src/SMESH_SWIG/SMESH_GroupFromGeom2.py b/test/SMESH_GroupFromGeom2.py similarity index 100% rename from src/SMESH_SWIG/SMESH_GroupFromGeom2.py rename to test/SMESH_GroupFromGeom2.py diff --git a/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py b/test/SMESH_GroupLyingOnGeom.py similarity index 100% rename from src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py rename to test/SMESH_GroupLyingOnGeom.py diff --git a/src/SMESH_SWIG/SMESH_Nut.py b/test/SMESH_Nut.py similarity index 100% rename from src/SMESH_SWIG/SMESH_Nut.py rename to test/SMESH_Nut.py diff --git a/src/SMESH_SWIG/SMESH_Partition1_tetra.py b/test/SMESH_Partition1_tetra.py similarity index 100% rename from src/SMESH_SWIG/SMESH_Partition1_tetra.py rename to test/SMESH_Partition1_tetra.py diff --git a/src/SMESH_SWIG/SMESH_Sphere.py b/test/SMESH_Sphere.py similarity index 100% rename from src/SMESH_SWIG/SMESH_Sphere.py rename to test/SMESH_Sphere.py diff --git a/src/SMESH_SWIG/SMESH_blocks.py b/test/SMESH_blocks.py similarity index 100% rename from src/SMESH_SWIG/SMESH_blocks.py rename to test/SMESH_blocks.py diff --git a/src/SMESH_SWIG/SMESH_box.py b/test/SMESH_box.py similarity index 100% rename from src/SMESH_SWIG/SMESH_box.py rename to test/SMESH_box.py diff --git a/src/SMESH_SWIG/SMESH_box2_tetra.py b/test/SMESH_box2_tetra.py similarity index 100% rename from src/SMESH_SWIG/SMESH_box2_tetra.py rename to test/SMESH_box2_tetra.py diff --git a/src/SMESH_SWIG/SMESH_box3_tetra.py b/test/SMESH_box3_tetra.py similarity index 100% rename from src/SMESH_SWIG/SMESH_box3_tetra.py rename to test/SMESH_box3_tetra.py diff --git a/src/SMESH_SWIG/SMESH_box_tetra.py b/test/SMESH_box_tetra.py similarity index 100% rename from src/SMESH_SWIG/SMESH_box_tetra.py rename to test/SMESH_box_tetra.py diff --git a/src/SMESH_SWIG/SMESH_controls.py b/test/SMESH_controls.py similarity index 100% rename from src/SMESH_SWIG/SMESH_controls.py rename to test/SMESH_controls.py diff --git a/src/SMESH_SWIG/SMESH_demo_hexa2_upd.py b/test/SMESH_demo_hexa2_upd.py similarity index 100% rename from src/SMESH_SWIG/SMESH_demo_hexa2_upd.py rename to test/SMESH_demo_hexa2_upd.py diff --git a/src/SMESH_SWIG/SMESH_fixation.py b/test/SMESH_fixation.py similarity index 100% rename from src/SMESH_SWIG/SMESH_fixation.py rename to test/SMESH_fixation.py diff --git a/src/SMESH_SWIG/SMESH_fixation_hexa.py b/test/SMESH_fixation_hexa.py similarity index 100% rename from src/SMESH_SWIG/SMESH_fixation_hexa.py rename to test/SMESH_fixation_hexa.py diff --git a/src/SMESH_SWIG/SMESH_fixation_netgen.py b/test/SMESH_fixation_netgen.py similarity index 100% rename from src/SMESH_SWIG/SMESH_fixation_netgen.py rename to test/SMESH_fixation_netgen.py diff --git a/src/SMESH_SWIG/SMESH_fixation_tetra.py b/test/SMESH_fixation_tetra.py similarity index 100% rename from src/SMESH_SWIG/SMESH_fixation_tetra.py rename to test/SMESH_fixation_tetra.py diff --git a/src/SMESH_SWIG/SMESH_flight_skin.py b/test/SMESH_flight_skin.py similarity index 98% rename from src/SMESH_SWIG/SMESH_flight_skin.py rename to test/SMESH_flight_skin.py index bfbd5d387..14757a3c2 100644 --- a/src/SMESH_SWIG/SMESH_flight_skin.py +++ b/test/SMESH_flight_skin.py @@ -48,7 +48,7 @@ filePath = filePath + "/Shapes/Brep/" filename = "flight_solid.brep" filename = filePath + filename -shape = geompy.Import(filename, "BREP") +shape = geompy.ImportBREP(filename) idShape = geompy.addToStudy(shape, "flight") print("Analysis of the geometry flight :") diff --git a/src/SMESH_SWIG/SMESH_freebord.py b/test/SMESH_freebord.py similarity index 100% rename from src/SMESH_SWIG/SMESH_freebord.py rename to test/SMESH_freebord.py diff --git a/src/SMESH_SWIG/SMESH_hexaedre.py b/test/SMESH_hexaedre.py similarity index 100% rename from src/SMESH_SWIG/SMESH_hexaedre.py rename to test/SMESH_hexaedre.py diff --git a/src/SMESH_SWIG/SMESH_mechanic.py b/test/SMESH_mechanic.py similarity index 100% rename from src/SMESH_SWIG/SMESH_mechanic.py rename to test/SMESH_mechanic.py diff --git a/src/SMESH_SWIG/SMESH_mechanic_editor.py b/test/SMESH_mechanic_editor.py similarity index 100% rename from src/SMESH_SWIG/SMESH_mechanic_editor.py rename to test/SMESH_mechanic_editor.py diff --git a/src/SMESH_SWIG/SMESH_mechanic_netgen.py b/test/SMESH_mechanic_netgen.py similarity index 100% rename from src/SMESH_SWIG/SMESH_mechanic_netgen.py rename to test/SMESH_mechanic_netgen.py diff --git a/src/SMESH_SWIG/SMESH_mechanic_tetra.py b/test/SMESH_mechanic_tetra.py similarity index 100% rename from src/SMESH_SWIG/SMESH_mechanic_tetra.py rename to test/SMESH_mechanic_tetra.py diff --git a/src/SMESH_SWIG/SMESH_reg.py b/test/SMESH_reg.py similarity index 100% rename from src/SMESH_SWIG/SMESH_reg.py rename to test/SMESH_reg.py diff --git a/src/SMESH_SWIG/SMESH_test.py b/test/SMESH_test.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test.py rename to test/SMESH_test.py diff --git a/src/SMESH_SWIG/SMESH_test0.py b/test/SMESH_test0.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test0.py rename to test/SMESH_test0.py diff --git a/src/SMESH_SWIG/SMESH_test1.py b/test/SMESH_test1.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test1.py rename to test/SMESH_test1.py diff --git a/src/SMESH_SWIG/SMESH_test1_AndDisplay.py b/test/SMESH_test1_AndDisplay.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test1_AndDisplay.py rename to test/SMESH_test1_AndDisplay.py diff --git a/src/SMESH_SWIG/SMESH_test2.py b/test/SMESH_test2.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test2.py rename to test/SMESH_test2.py diff --git a/src/SMESH_SWIG/SMESH_test3.py b/test/SMESH_test3.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test3.py rename to test/SMESH_test3.py diff --git a/src/SMESH_SWIG/SMESH_test4.py b/test/SMESH_test4.py similarity index 100% rename from src/SMESH_SWIG/SMESH_test4.py rename to test/SMESH_test4.py diff --git a/src/SMESH_SWIG/SMESH_test5.py b/test/SMESH_test5.py similarity index 65% rename from src/SMESH_SWIG/SMESH_test5.py rename to test/SMESH_test5.py index ca49d2c64..eca5389e7 100644 --- a/src/SMESH_SWIG/SMESH_test5.py +++ b/test/SMESH_test5.py @@ -24,6 +24,7 @@ # File : SMESH_test5.py # Module : SMESH # + import salome salome.salome_init() import GEOM @@ -36,7 +37,10 @@ smesh = smeshBuilder.New() import CORBA import os -import os.path +import shutil +import tempfile + +aOutPath = tempfile.mkdtemp() def SetSObjName(theSObj,theName) : ok, anAttr = theSObj.FindAttribute("AttributeName") @@ -45,40 +49,31 @@ def SetSObjName(theSObj,theName) : #print aName.__dict__ aName.SetValue(theName) -def ConvertMED2UNV(thePath,theFile) : - anInitFileName = thePath + theFile - aMeshes,aResult = smesh.CreateMeshesFromMED(anInitFileName) - print(aResult, aMeshes) +def ConvertMED2UNV(theFile): + print(theFile) + aMeshes, aResult = smesh.CreateMeshesFromMED(theFile) + print(aMeshes, aResult) - for iMesh in range(len(aMeshes)) : - aMesh = aMeshes[iMesh] + for aMesh in aMeshes: print(aMesh.GetName(), end=' ') - aFileName = anInitFileName - aFileName = os.path.basename(aFileName) - aMesh.SetName(aFileName) + aMesh.SetName(os.path.basename(theFile)) print(aMesh.GetName()) - aOutPath = '/tmp/' - aFileName = aOutPath + theFile + "." + str(iMesh) + ".unv" + aFileName = os.path.join(aOutPath, theFile + ".unv") aMesh.ExportUNV(aFileName) + aMesh = smesh.CreateMeshesFromUNV(aFileName) print(aMesh.GetName(), end=' ') - os.remove(aFileName) - aFileName = os.path.basename(aFileName) - aMesh.SetName(aFileName) + aMesh.SetName(os.path.basename(aFileName)) print(aMesh.GetName()) -aPath = os.getenv('DATA_DIR') + '/MedFiles/' -aListDir = os.listdir(aPath) -print(aListDir) +aPath = os.path.join(os.getenv('DATA_DIR'), 'MedFiles') + +for aFileName in sorted(os.listdir(aPath)): + if os.path.splitext(aFileName)[-1] == ".med": + ConvertMED2UNV(os.path.join(aPath, aFileName)) -for iFile in range(len(aListDir)) : - aFileName = aListDir[iFile] - aName,anExt = os.path.splitext(aFileName) - if anExt == ".med" : - aFileName = os.path.basename(aFileName) - print(aFileName) - ConvertMED2UNV(aPath,aFileName) - #break +if os.getenv('SMESH_KEEP_TMP_DIR') != '1': + shutil.rmtree(aOutPath) salome.sg.updateObjBrowser() diff --git a/src/SMESH_SWIG/ex00_all.py b/test/ex00_all.py similarity index 100% rename from src/SMESH_SWIG/ex00_all.py rename to test/ex00_all.py diff --git a/src/SMESH_SWIG/ex01_cube2build.py b/test/ex01_cube2build.py similarity index 100% rename from src/SMESH_SWIG/ex01_cube2build.py rename to test/ex01_cube2build.py diff --git a/src/SMESH_SWIG/ex02_cube2primitive.py b/test/ex02_cube2primitive.py similarity index 100% rename from src/SMESH_SWIG/ex02_cube2primitive.py rename to test/ex02_cube2primitive.py diff --git a/src/SMESH_SWIG/ex03_cube2partition.py b/test/ex03_cube2partition.py similarity index 100% rename from src/SMESH_SWIG/ex03_cube2partition.py rename to test/ex03_cube2partition.py diff --git a/src/SMESH_SWIG/ex04_cube5tetraHexa.py b/test/ex04_cube5tetraHexa.py similarity index 100% rename from src/SMESH_SWIG/ex04_cube5tetraHexa.py rename to test/ex04_cube5tetraHexa.py diff --git a/src/SMESH_SWIG/ex05_hole1build.py b/test/ex05_hole1build.py similarity index 100% rename from src/SMESH_SWIG/ex05_hole1build.py rename to test/ex05_hole1build.py diff --git a/src/SMESH_SWIG/ex06_hole1boolean.py b/test/ex06_hole1boolean.py similarity index 100% rename from src/SMESH_SWIG/ex06_hole1boolean.py rename to test/ex06_hole1boolean.py diff --git a/src/SMESH_SWIG/ex07_hole1partition.py b/test/ex07_hole1partition.py similarity index 100% rename from src/SMESH_SWIG/ex07_hole1partition.py rename to test/ex07_hole1partition.py diff --git a/src/SMESH_SWIG/ex08_hole2build.py b/test/ex08_hole2build.py similarity index 100% rename from src/SMESH_SWIG/ex08_hole2build.py rename to test/ex08_hole2build.py diff --git a/src/SMESH_SWIG/ex09_grid4build.py b/test/ex09_grid4build.py similarity index 100% rename from src/SMESH_SWIG/ex09_grid4build.py rename to test/ex09_grid4build.py diff --git a/src/SMESH_SWIG/ex10_grid4geometry.py b/test/ex10_grid4geometry.py similarity index 100% rename from src/SMESH_SWIG/ex10_grid4geometry.py rename to test/ex10_grid4geometry.py diff --git a/src/SMESH_SWIG/ex11_grid3partition.py b/test/ex11_grid3partition.py similarity index 100% rename from src/SMESH_SWIG/ex11_grid3partition.py rename to test/ex11_grid3partition.py diff --git a/src/SMESH_SWIG/ex12_grid17partition.py b/test/ex12_grid17partition.py similarity index 100% rename from src/SMESH_SWIG/ex12_grid17partition.py rename to test/ex12_grid17partition.py diff --git a/src/SMESH_SWIG/ex13_hole1partial.py b/test/ex13_hole1partial.py similarity index 100% rename from src/SMESH_SWIG/ex13_hole1partial.py rename to test/ex13_hole1partial.py diff --git a/src/SMESH_SWIG/ex14_cyl1holed.py b/test/ex14_cyl1holed.py similarity index 100% rename from src/SMESH_SWIG/ex14_cyl1holed.py rename to test/ex14_cyl1holed.py diff --git a/src/SMESH_SWIG/ex15_cyl2geometry.py b/test/ex15_cyl2geometry.py similarity index 100% rename from src/SMESH_SWIG/ex15_cyl2geometry.py rename to test/ex15_cyl2geometry.py diff --git a/src/SMESH_SWIG/ex16_cyl2complementary.py b/test/ex16_cyl2complementary.py similarity index 100% rename from src/SMESH_SWIG/ex16_cyl2complementary.py rename to test/ex16_cyl2complementary.py diff --git a/src/SMESH_SWIG/ex17_dome1.py b/test/ex17_dome1.py similarity index 100% rename from src/SMESH_SWIG/ex17_dome1.py rename to test/ex17_dome1.py diff --git a/src/SMESH_SWIG/ex18_dome2.py b/test/ex18_dome2.py similarity index 100% rename from src/SMESH_SWIG/ex18_dome2.py rename to test/ex18_dome2.py diff --git a/src/SMESH_SWIG/ex19_sphereINcube.py b/test/ex19_sphereINcube.py similarity index 100% rename from src/SMESH_SWIG/ex19_sphereINcube.py rename to test/ex19_sphereINcube.py diff --git a/src/SMESH_SWIG/ex21_lamp.py b/test/ex21_lamp.py similarity index 100% rename from src/SMESH_SWIG/ex21_lamp.py rename to test/ex21_lamp.py diff --git a/src/SMESH_SWIG/ex24_cylinder.py b/test/ex24_cylinder.py similarity index 100% rename from src/SMESH_SWIG/ex24_cylinder.py rename to test/ex24_cylinder.py diff --git a/src/SMESH_SWIG/ex29_refine.py b/test/ex29_refine.py similarity index 96% rename from src/SMESH_SWIG/ex29_refine.py rename to test/ex29_refine.py index b693f3029..b0f810882 100644 --- a/src/SMESH_SWIG/ex29_refine.py +++ b/test/ex29_refine.py @@ -21,6 +21,11 @@ # ======================================= # Procedure that take a triangulation and split all triangles in 4 others triangles # + +import os +import shutil +import tempfile + import salome salome.salome_init() import GEOM @@ -31,16 +36,14 @@ import SMESH, SALOMEDS from salome.smesh import smeshBuilder smesh = smeshBuilder.New() -import os - # Values # ------ -tmpDir = os.getenv('SALOME_TMP_DIR', '/tmp') +tmpDir = tempfile.mkdtemp() print("Output directory:", tmpDir) # Path for ".med" files -path = os.path.join( tmpDir, "ex29_%s_" % os.getenv('USER','unknown')) +path = os.path.join(tmpDir, "ex29_") # Name of the shape and the mesh name = "Carre" @@ -229,6 +232,12 @@ print(("Mesh with "+str(NbCells4)+" cells computed.")) MyMesh.ExportMED(path+str(NbCells4)+"_triangles.med", 0) +# Remove temporary directory +# -------------------------- + +if os.getenv('SMESH_KEEP_TMP_DIR') != '1': + shutil.rmtree(tmpDir) + # Update the object browser # ------------------------- diff --git a/src/SMESH_SWIG/ex30_groupsOp.py b/test/ex30_groupsOp.py similarity index 100% rename from src/SMESH_SWIG/ex30_groupsOp.py rename to test/ex30_groupsOp.py diff --git a/src/SMESH_SWIG/ex30_tepal.py b/test/ex30_tepal.py similarity index 100% rename from src/SMESH_SWIG/ex30_tepal.py rename to test/ex30_tepal.py diff --git a/src/SMESH_SWIG/ex31_dimGroup.py b/test/ex31_dimGroup.py similarity index 100% rename from src/SMESH_SWIG/ex31_dimGroup.py rename to test/ex31_dimGroup.py diff --git a/test/tests.set b/test/tests.set index 7873820e2..1290a198b 100644 --- a/test/tests.set +++ b/test/tests.set @@ -46,12 +46,77 @@ SET(GOOD_TESTS ex_MakePolyLine.py extrusion_penta_biquad.py test_polyhedron_per_solid.py + + ex01_cube2build.py + ex02_cube2primitive.py + ex03_cube2partition.py + ex04_cube5tetraHexa.py + ex05_hole1build.py + ex06_hole1boolean.py + ex07_hole1partition.py + ex08_hole2build.py + ex09_grid4build.py + ex10_grid4geometry.py + ex11_grid3partition.py + ex12_grid17partition.py + ex13_hole1partial.py + ex14_cyl1holed.py + ex15_cyl2geometry.py + ex16_cyl2complementary.py + ex17_dome1.py + ex18_dome2.py + ex19_sphereINcube.py + ex21_lamp.py + ex24_cylinder.py + ex29_refine.py + ex30_groupsOp.py + ex30_tepal.py + ex31_dimGroup.py + PAL_MESH_041_mesh.py + PAL_MESH_043_2D.py + PAL_MESH_043_3D.py + SMESH_AdvancedEditor.py + SMESH_BelongToGeom.py + SMESH_blocks.py + SMESH_box2_tetra.py + SMESH_box3_tetra.py + SMESH_box.py + SMESH_box_tetra.py + SMESH_BuildCompound.py + SMESH_controls.py + SMESH_demo_hexa2_upd.py + SMESH_fixation_hexa.py + SMESH_fixation_netgen.py + SMESH_fixation.py + SMESH_fixation_tetra.py + SMESH_flight_skin.py + SMESH_freebord.py + SMESH_GroupFromGeom2.py + SMESH_GroupFromGeom.py + SMESH_GroupLyingOnGeom.py + SMESH_hexaedre.py + SMESH_mechanic_editor.py + SMESH_mechanic_netgen.py + SMESH_mechanic.py + SMESH_mechanic_tetra.py + SMESH_Nut.py + SMESH_Partition1_tetra.py + SMESH_reg.py + SMESH_Sphere.py + SMESH_test0.py + SMESH_test1_AndDisplay.py + SMESH_test1.py + SMESH_test2.py + SMESH_test3.py + SMESH_test4.py + SMESH_test5.py + SMESH_test.py ) # The following tests can be executed without driver, just by python. # ---------------------------------------------------------------------------- -set(SESSION_FREE_TESTS +SET(SESSION_FREE_TESTS basic_geom_smesh_without_session.py basic_shaper_smesh_without_session.py basic_smesh_output_with_mc_field.py @@ -59,3 +124,10 @@ set(SESSION_FREE_TESTS shaper_smesh_groups_without_session.py ssl_hdf5_symbols_conflicts.py ) + +# Additional files to install (not tests) +# --------------------------------------- + +SET(OTHER_FILES + ex00_all.py + ) -- 2.39.2