isDone = Mesh_quad.Compute()
smesh.SetName(Mesh_tri, 'Mesh_tri')
if out_filename:
- Mesh_tri.ExportMED(out_filename, 0, SMESH.MED_V2_2, 1, None ,1)
+ Mesh_tri.ExportMED(out_filename, overwrite=True)
smesh.SetName(Mesh_quad, 'Mesh_quad')
if out_filename:
- Mesh_quad.ExportMED(out_filename, 0, SMESH.MED_V2_2, 0, None ,1)
+ Mesh_quad.ExportMED(out_filename, overwrite=False)
# Set names of Mesh objects
smesh.SetName(Regular_1D.GetAlgorithm(), 'Regular_1D')
tmpf = tempfile.NamedTemporaryFile(suffix='.med')
fname = tmpf.name
tmpf.close()
- mo.ExportToMEDX(fname, True, SMESH.MED_V2_2, True, True)
+ mo.ExportMED(fname, True, True, True)
ShowParaviewView()
p = MEDReader(FileName=fname)
renderView = GetActiveViewOrCreate('RenderView')