mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
adjust for shaperBuilder
This commit is contained in:
parent
7c8ea81b29
commit
fe414fe4e7
@ -305,7 +305,7 @@ def AssureGeomPublished(mesh, geom, name=''):
|
|||||||
"""
|
"""
|
||||||
if not mesh.smeshpyD.IsEnablePublish():
|
if not mesh.smeshpyD.IsEnablePublish():
|
||||||
return
|
return
|
||||||
if not isinstance( geom, geomBuilder.GEOM._objref_GEOM_Object ):
|
if not hasattr( geom, "GetShapeType" ):
|
||||||
return
|
return
|
||||||
if not geom.GetStudyEntry():
|
if not geom.GetStudyEntry():
|
||||||
## get a name
|
## get a name
|
||||||
|
@ -396,7 +396,7 @@ class Mesh_Algorithm:
|
|||||||
geompy = self.mesh.geompyD
|
geompy = self.mesh.geompyD
|
||||||
for i in reverseList:
|
for i in reverseList:
|
||||||
if isinstance( i, int ):
|
if isinstance( i, int ):
|
||||||
s = geompy.SubShapes(self.mesh.geom, [i])[0]
|
s = geompy.GetSubShape(self.mesh.geom, [i])
|
||||||
if s.GetShapeType() != geomBuilder.GEOM.EDGE:
|
if s.GetShapeType() != geomBuilder.GEOM.EDGE:
|
||||||
raise TypeError("Not EDGE index given")
|
raise TypeError("Not EDGE index given")
|
||||||
resList.append( i )
|
resList.append( i )
|
||||||
|
Loading…
Reference in New Issue
Block a user