From: eap Date: Fri, 24 Oct 2008 08:11:58 +0000 (+0000) Subject: PAL20544 4x: problems with Concatenate(). X-Git-Tag: V5_1_0a3~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f2f2d5fa51c897fd2c867ebe18876695a2e02b4;p=modules%2Fsmesh.git PAL20544 4x: problems with Concatenate(). set smeshDC.geompyD in SetCurrentStudy() --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index c9d99bf92..4b6ab7036 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -237,9 +237,7 @@ class smeshDC(SMESH._objref_SMESH_Gen): ## Sets the current study and Geometry component # @ingroup l1_auxiliary def init_smesh(self,theStudy,geompyD): - self.geompyD=geompyD - self.SetGeomEngine(geompyD) - self.SetCurrentStudy(theStudy) + self.SetCurrentStudy(theStudy,geompyD) ## Creates an empty Mesh. This mesh can have an underlying geometry. # @param obj the Geometrical object on which the mesh is built. If not defined, @@ -330,8 +328,14 @@ class smeshDC(SMESH._objref_SMESH_Gen): ## Sets the current study # @ingroup l1_auxiliary - def SetCurrentStudy( self, theStudy ): + def SetCurrentStudy( self, theStudy, geompyD = None ): #self.SetCurrentStudy(theStudy) + if not geompyD: + import geompy + geompyD = geompy.geom + pass + self.geompyD=geompyD + self.SetGeomEngine(geompyD) SMESH._objref_SMESH_Gen.SetCurrentStudy(self,theStudy) ## Gets the current study