mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +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():
|
||||
return
|
||||
if not isinstance( geom, geomBuilder.GEOM._objref_GEOM_Object ):
|
||||
if not hasattr( geom, "GetShapeType" ):
|
||||
return
|
||||
if not geom.GetStudyEntry():
|
||||
## get a name
|
||||
|
@ -396,7 +396,7 @@ class Mesh_Algorithm:
|
||||
geompy = self.mesh.geompyD
|
||||
for i in reverseList:
|
||||
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:
|
||||
raise TypeError("Not EDGE index given")
|
||||
resList.append( i )
|
||||
|
Loading…
Reference in New Issue
Block a user