From a492c7c60c41b59fc3e25d85e2691d2d4d580ee9 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 14 Oct 2016 09:19:48 +0300 Subject: [PATCH] shape groups are also included into the "regions" table --- src/salome_hydro/interpolz_gui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/salome_hydro/interpolz_gui.py b/src/salome_hydro/interpolz_gui.py index 4d88c38..5b68179 100644 --- a/src/salome_hydro/interpolz_gui.py +++ b/src/salome_hydro/interpolz_gui.py @@ -43,6 +43,12 @@ def get_hydro_regions( calc_case_name ): for r in regions: rname = r.GetName() regions_names.append( str(rname) ) + + shape_groups = case.GetGeometryGroups() + for sg in shape_groups: + sgname = sg.GetName() + regions_names.append( sgname ) + return regions_names else: return [] -- 2.39.2