From: salome <> Date: Thu, 14 Apr 2005 10:45:02 +0000 (+0000) Subject: Ajout de la prise en compte des conditions aux limites sur des Edges pour les études 2D X-Git-Tag: CL_Pour_Eficas17~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55a98ab8ab5d7d3bc273b8c8dd1bce1fcdefc760;p=modules%2Feficas.git Ajout de la prise en compte des conditions aux limites sur des Edges pour les études 2D --- diff --git a/src/EFICASGUI/eficasCL.py b/src/EFICASGUI/eficasCL.py index 8442bd90..7f874875 100644 --- a/src/EFICASGUI/eficasCL.py +++ b/src/EFICASGUI/eficasCL.py @@ -44,7 +44,16 @@ class CLinit: attrName = aShapeSO.FindAttribute("AttributeName")[1] anAttr = attrName._narrow(SALOMEDS.AttributeName) Name = anAttr.Value() - Mesh.CreateGroupFromGEOM(SMESH.FACE,Name,GEOMShape) + #_CS_cbo: ajout de la determination de la dimension de la geometrie + #Mesh.CreateGroupFromGEOM(SMESH.FACE,Name,GEOMShape) + ShapeType = GEOMShape.GetShapeType() + print ShapeType + if str(ShapeType) is "EDGE": + print "--------------- EDGE existing Mesh" + Mesh.CreateGroupFromGEOM(SMESH.EDGE,Name,GEOMShape) + else: + print "--------------- FACE existing Mesh" + Mesh.CreateGroupFromGEOM(SMESH.FACE,Name,GEOMShape) del dict_CL[GEOMIor] @@ -70,7 +79,16 @@ class CLinit: attrName = aShapeSO.FindAttribute("AttributeName")[1] anAttr = attrName._narrow(SALOMEDS.AttributeName) Name = anAttr.Value() - newMesh.CreateGroupFromGEOM(SMESH.FACE,Name,GEOMShape) + #_CS_cbo: ajout de la determination de la dimension de la geometrie + #newMesh.CreateGroupFromGEOM(SMESH.FACE,Name,GEOMShape) + ShapeType = GEOMShape.GetShapeType() + print ShapeType + if str(ShapeType) is "EDGE": + print "--------------- EDGE newMesh" + newMesh.CreateGroupFromGEOM(SMESH.EDGE,Name,GEOMShape) + else: + print "--------------- FACE newMesh" + newMesh.CreateGroupFromGEOM(SMESH.FACE,Name,GEOMShape) del dict_CL[GEOMIor] def NomShape(self,numero):