mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 06:10:33 +05:00
Bug 17298: AttributeError during import of SMESH_BelongToGeom.py.
This commit is contained in:
parent
f6fd462515
commit
ac898ee42c
@ -306,7 +306,7 @@ class smeshDC(SMESH._objref_SMESH_Gen):
|
|||||||
if CritType in [FT_BelongToGeom, FT_BelongToPlane, FT_BelongToGenSurface,
|
if CritType in [FT_BelongToGeom, FT_BelongToPlane, FT_BelongToGenSurface,
|
||||||
FT_BelongToCylinder, FT_LyingOnGeom]:
|
FT_BelongToCylinder, FT_LyingOnGeom]:
|
||||||
# Check treshold
|
# Check treshold
|
||||||
if isinstance(aTreshold, self.geompyD.GEOM._objref_GEOM_Object):
|
if isinstance(aTreshold, geompyDC.GEOM._objref_GEOM_Object):
|
||||||
aCriterion.ThresholdStr = GetName(aTreshold)
|
aCriterion.ThresholdStr = GetName(aTreshold)
|
||||||
aCriterion.ThresholdID = salome.ObjectToID(aTreshold)
|
aCriterion.ThresholdID = salome.ObjectToID(aTreshold)
|
||||||
else:
|
else:
|
||||||
@ -611,7 +611,7 @@ class Mesh_Segment(Mesh_Algorithm):
|
|||||||
store_geom = self.geom
|
store_geom = self.geom
|
||||||
if vertex:
|
if vertex:
|
||||||
if type(vertex) is types.IntType:
|
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
|
pass
|
||||||
self.geom = vertex
|
self.geom = vertex
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user