From 55a98ab8ab5d7d3bc273b8c8dd1bce1fcdefc760 Mon Sep 17 00:00:00 2001 From: salome <> Date: Thu, 14 Apr 2005 10:45:02 +0000 Subject: [PATCH] =?utf8?q?Ajout=20de=20la=20prise=20en=20compte=20des=20co?= =?utf8?q?nditions=20aux=20limites=20sur=20des=20Edges=20pour=20les=20?= =?utf8?q?=C3=A9tudes=202D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/EFICASGUI/eficasCL.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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): -- 2.39.2