From: jfa Date: Tue, 16 Oct 2007 12:54:34 +0000 (+0000) Subject: Bug 17298: AttributeError during import of SMESH_BelongToGeom.py. X-Git-Tag: V4_1_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac898ee42c007fb8a611ead5f8c50566c7558b8e;p=modules%2Fsmesh.git Bug 17298: AttributeError during import of SMESH_BelongToGeom.py. --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 690003159..f980b9e93 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -306,7 +306,7 @@ class smeshDC(SMESH._objref_SMESH_Gen): if CritType in [FT_BelongToGeom, FT_BelongToPlane, FT_BelongToGenSurface, FT_BelongToCylinder, FT_LyingOnGeom]: # Check treshold - if isinstance(aTreshold, self.geompyD.GEOM._objref_GEOM_Object): + if isinstance(aTreshold, geompyDC.GEOM._objref_GEOM_Object): aCriterion.ThresholdStr = GetName(aTreshold) aCriterion.ThresholdID = salome.ObjectToID(aTreshold) else: @@ -611,7 +611,7 @@ class Mesh_Segment(Mesh_Algorithm): store_geom = self.geom if vertex: if type(vertex) is types.IntType: - vertex = self.mesh.geompyD.SubShapeAllSorted(self.geom,self.mesh.geompyD.ShapeType["VERTEX"])[vertex] + vertex = self.mesh.geompyD.SubShapeAllSorted(self.geom, geompyDC.ShapeType["VERTEX"])[vertex] pass self.geom = vertex pass