mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Fix script bugs
This commit is contained in:
parent
e0c8587bcd
commit
215c9b865b
@ -6,11 +6,13 @@
|
|||||||
import geompy
|
import geompy
|
||||||
import smesh
|
import smesh
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
# Values
|
# Values
|
||||||
# ------
|
# ------
|
||||||
|
|
||||||
# Path for ".med" files
|
# Path for ".med" files
|
||||||
path = "/tmp/ex29_"
|
path = "/tmp/ex29_%s_" % os.getenv('USER','unknown')
|
||||||
|
|
||||||
# Name of the shape and the mesh
|
# Name of the shape and the mesh
|
||||||
name = "Carre"
|
name = "Carre"
|
||||||
@ -202,4 +204,4 @@ MyMesh.ExportMED(path+str(NbCells4)+"_triangles.med", 0)
|
|||||||
# Update the object browser
|
# Update the object browser
|
||||||
# -------------------------
|
# -------------------------
|
||||||
|
|
||||||
salome.sg.updateObjBrowser(1)
|
geompy.salome.sg.updateObjBrowser(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user