# -*- coding: iso-8859-1 -*- ### ### This file is generated automatically by SALOME v6.6.0 with dump python functionality ### import sys import salome salome.salome_init() theStudy = salome.myStudy import salome_notebook notebook = salome_notebook.notebook sys.path.insert( 0, r'/home/sarah/Bureau/test_Aster_Grille_correct') import iparameters ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) #Set up visual properties: ipar.setProperty("AP_ACTIVE_VIEW", "OCCViewer_0_0") ipar.setProperty("AP_WORKSTACK_INFO", "000000010000000000000002010000000100000586000000040000000100000001000000080000001a004f00430043005600690065007700650072005f0030005f00300000000102") ipar.setProperty("AP_ACTIVE_MODULE", "Geometry") ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 1") #Set up lists: # fill list AP_VIEWERS_LIST ipar.append("AP_VIEWERS_LIST", "OCCViewer_1") # fill list OCCViewer_1 ipar.append("OCCViewer_1", "OCC scene:6 - viewer:1") ipar.append("OCCViewer_1", "0|scale=1.423653078055e+02*centerX=1.159802160257e+00*centerY=5.154629930500e-03*projX=-9.516402147710e-03*projY=-5.429487824440e-01*projZ=8.397116661072e-01*twist=5.552481646933e+00*atX=5.433372855186e-01*atY=1.980165839195e+00*atZ=3.424494564533e-01*eyeX=5.430579680418e-01*eyeY=1.964229660625e+00*eyeZ=3.670959709887e-01*scaleX=1.000000000000e+00*scaleY=1.000000000000e+00*scaleZ=1.000000000000e+00*isVisible=0*size=3.20*gtIsVisible=0*gtDrawNameX=1*gtDrawNameY=1*gtDrawNameZ=1*gtNameX=X*gtNameY=Y*gtNameZ=Z*gtNameColorRX=255*gtNameColorGX=0*gtNameColorBX=0*gtNameColorRY=0*gtNameColorGY=255*gtNameColorBY=0*gtNameColorRZ=0*gtNameColorGZ=0*gtNameColorBZ=255*gtDrawValuesX=1*gtDrawValuesY=1*gtDrawValuesZ=1*gtNbValuesX=3*gtNbValuesY=3*gtNbValuesZ=3*gtOffsetX=2*gtOffsetY=2*gtOffsetZ=2*gtColorRX=255*gtColorGX=0*gtColorBX=0*gtColorRY=0*gtColorGY=255*gtColorBY=0*gtColorRZ=0*gtColorGZ=0*gtColorBZ=255*gtDrawTickmarksX=1*gtDrawTickmarksY=1*gtDrawTickmarksZ=1*gtTickmarkLengthX=5*gtTickmarkLengthY=5*gtTickmarkLengthZ=5*background=bt$1;fn$;tm$0;ts$false;c1$#238891;c2$#238891;gt$-1;gr$") # fill list AP_MODULES_LIST ipar.append("AP_MODULES_LIST", "Geometry") ### ### GEOM component ### import GEOM import geompy import math import SALOMEDS geompy.init_geom(theStudy) N0 = geompy.MakeVertex(0, 0.8, 0.8) N1 = geompy.MakeVertex(0.8, 0.8, 0) N2 = geompy.MakeVertex(1.6, 0.8, 0.08) N3 = geompy.MakeVertex(2.4, 0.8, 0) N4 = geompy.MakeVertex(3.2, 0.8, 0.8) N5 = geompy.MakeVertex(0.8, 0, 0) N6 = geompy.MakeVertex(1.6, 0, 0.8) N7 = geompy.MakeVertex(2.4, 0, 0) N8 = geompy.MakeVertex(0.8, 0.8, 0.8) N9 = geompy.MakeVertex(1.6, 0.8, 0) N10 = geompy.MakeVertex(2.4, 0.8, 0.8) BARRE1 = geompy.MakeLineTwoPnt(N0, N8) BARRE2 = geompy.MakeLineTwoPnt(N8, N2) BARRE3 = geompy.MakeLineTwoPnt(N2, N10) BARRE4 = geompy.MakeLineTwoPnt(N10, N4) BARRE5 = geompy.MakeLineTwoPnt(N0, N1) BARRE6 = geompy.MakeLineTwoPnt(N8, N1) BARRE7 = geompy.MakeLineTwoPnt(N1, N9) BARRE8 = geompy.MakeLineTwoPnt(N1, N2) BARRE9 = geompy.MakeLineTwoPnt(N9, N2) BARRE10 = geompy.MakeLineTwoPnt(N3, N9) BARRE11 = geompy.MakeLineTwoPnt(N2, N3) BARRE12 = geompy.MakeLineTwoPnt(N3, N4) BARRE13 = geompy.MakeLineTwoPnt(N3, N10) BARRE14 = geompy.MakeLineTwoPnt(N4, N7) BARRE15 = geompy.MakeLineTwoPnt(N3, N7) BARRE16 = geompy.MakeLineTwoPnt(N7, N6) BARRE17 = geompy.MakeLineTwoPnt(N6, N9) BARRE18 = geompy.MakeLineTwoPnt(N6, N5) BARRE19 = geompy.MakeLineTwoPnt(N5, N1) BARRE20 = geompy.MakeLineTwoPnt(N5, N0) BARRE21 = geompy.MakeLineTwoPnt(N2, N6) geompy.addToStudy( N0, 'N0' ) geompy.addToStudy( N1, 'N1' ) geompy.addToStudy( N2, 'N2' ) geompy.addToStudy( N3, 'N3' ) geompy.addToStudy( N4, 'N4' ) geompy.addToStudy( N5, 'N5' ) geompy.addToStudy( N6, 'N6' ) geompy.addToStudy( N7, 'N7' ) geompy.addToStudy( N8, 'N8' ) geompy.addToStudy( N9, 'N9' ) geompy.addToStudy( N10, 'N10' ) geompy.addToStudy( BARRE1, 'BARRE1' ) geompy.addToStudy( BARRE2, 'BARRE2' ) geompy.addToStudy( BARRE3, 'BARRE3' ) geompy.addToStudy( BARRE4, 'BARRE4' ) geompy.addToStudy( BARRE5, 'BARRE5' ) geompy.addToStudy( BARRE6, 'BARRE6' ) geompy.addToStudy( BARRE7, 'BARRE7' ) geompy.addToStudy( BARRE8, 'BARRE8' ) geompy.addToStudy( BARRE9, 'BARRE9' ) geompy.addToStudy( BARRE10, 'BARRE10' ) geompy.addToStudy( BARRE11, 'BARRE11' ) geompy.addToStudy( BARRE12, 'BARRE12' ) geompy.addToStudy( BARRE13, 'BARRE13' ) geompy.addToStudy( BARRE14, 'BARRE14' ) geompy.addToStudy( BARRE15, 'BARRE15' ) geompy.addToStudy( BARRE16, 'BARRE16' ) geompy.addToStudy( BARRE17, 'BARRE17' ) geompy.addToStudy( BARRE18, 'BARRE18' ) geompy.addToStudy( BARRE19, 'BARRE19' ) geompy.addToStudy( BARRE20, 'BARRE20' ) geompy.addToStudy( BARRE21, 'BARRE21' ) ### Store presentation parameters of displayed objects import iparameters ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "GEOM", 1)) #Set up entries: # set up entry GEOM_1 (N0) parameters objId = geompy.getObjectID(N0) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_10 (N9) parameters objId = geompy.getObjectID(N9) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_11 (N10) parameters objId = geompy.getObjectID(N10) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_13 (BARRE1) parameters objId = geompy.getObjectID(BARRE1) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_14 (BARRE2) parameters objId = geompy.getObjectID(BARRE2) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_15 (BARRE3) parameters objId = geompy.getObjectID(BARRE3) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_16 (BARRE4) parameters objId = geompy.getObjectID(BARRE4) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_17 (BARRE5) parameters objId = geompy.getObjectID(BARRE5) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_18 (BARRE6) parameters objId = geompy.getObjectID(BARRE6) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_19 (BARRE7) parameters objId = geompy.getObjectID(BARRE7) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_2 (N1) parameters objId = geompy.getObjectID(N1) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_20 (BARRE8) parameters objId = geompy.getObjectID(BARRE8) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_21 (BARRE9) parameters objId = geompy.getObjectID(BARRE9) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_22 (BARRE10) parameters objId = geompy.getObjectID(BARRE10) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_23 (BARRE11) parameters objId = geompy.getObjectID(BARRE11) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_24 (BARRE12) parameters objId = geompy.getObjectID(BARRE12) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_25 (BARRE13) parameters objId = geompy.getObjectID(BARRE13) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_26 (BARRE14) parameters objId = geompy.getObjectID(BARRE14) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_27 (BARRE15) parameters objId = geompy.getObjectID(BARRE15) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_28 (BARRE16) parameters objId = geompy.getObjectID(BARRE16) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_29 (BARRE17) parameters objId = geompy.getObjectID(BARRE17) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_3 (N2) parameters objId = geompy.getObjectID(N2) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_30 (BARRE18) parameters objId = geompy.getObjectID(BARRE18) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_31 (BARRE19) parameters objId = geompy.getObjectID(BARRE19) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_32 (BARRE20) parameters objId = geompy.getObjectID(BARRE20) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_33 (BARRE21) parameters objId = geompy.getObjectID(BARRE21) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_4 (N3) parameters objId = geompy.getObjectID(N3) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_5 (N4) parameters objId = geompy.getObjectID(N4) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_6 (N5) parameters objId = geompy.getObjectID(N5) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_7 (N6) parameters objId = geompy.getObjectID(N6) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_8 (N7) parameters objId = geompy.getObjectID(N7) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") # set up entry GEOM_9 (N8) parameters objId = geompy.getObjectID(N8) ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") ipar.setParameter(objId, "OCCViewer_0_Color", "1:1:0") ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:Shininess=0.0078125:Transparency=0:Ambient=1:AmbientColor=#333333:AmbientCoefficient=0.5:Diffuse=1:DiffuseColor=#000000:DiffuseCoefficient=0.24:Specular=1:SpecularColor=#ffffff:SpecularCoefficient=0.06:Emissive=0:EmissiveColor=#000000:EmissiveCoefficient=0") ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") if salome.sg.hasDesktop(): salome.sg.updateObjBrowser(1) iparameters.getSession().restoreVisualState(1)