mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 02:30:33 +05:00
PAL13473 (Build repetitive mesh):
fix problem with Mesh(None)
This commit is contained in:
parent
ab99cd2215
commit
cd861753b0
@ -1022,6 +1022,8 @@ class Mesh:
|
||||
# @param obj Shape to be meshed or SMESH_Mesh object
|
||||
# @param name Study name of the mesh
|
||||
def __init__(self, obj=0, name=0):
|
||||
if obj is None:
|
||||
obj = 0
|
||||
if obj != 0:
|
||||
if isinstance(obj, geompy.GEOM._objref_GEOM_Object):
|
||||
self.geom = obj
|
||||
|
Loading…
Reference in New Issue
Block a user