if ret != 0:
log=mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the Mesh_mechanic:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the MeshBox2:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the MeshBox3:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the MeshBox:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the MeshcompShel:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the MeshcompShel:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
print(ret)
if ret != 0:
log = mesh.GetLog(0) # no erase trace
- for linelog in log:
- print(linelog)
+ # for linelog in log:
+ # print(linelog)
print("Information about the Mesh_mechanic_tetra:")
print("Number of nodes : ", mesh.NbNodes())
print("Number of edges : ", mesh.NbEdges())
ret = mesh.Compute(face)
print(ret)
-log = mesh.GetLog(0) # 0 - GetLog without ClearLog after, else if 1 - ClearLog after
+log = [] #mesh.GetLog(0) # 0 - GetLog without ClearLog after, else if 1 - ClearLog after
for a in log:
print("-------")
ii = 0
ret = mesh.Compute()
print(ret)
log = mesh.GetLog(0); # no erase trace
-for linelog in log:
- print(linelog)
+# for linelog in log:
+# print(linelog)
salome.sg.updateObjBrowser()
};
// load SMESH GUI if it's not yet loaded
- ProcessVoidEvent( new TInitEvent() );
- SMESHGUI::GetSMESHGen()->UpdateStudy();
+ if ( SUIT_Session::session() )
+ {
+ ProcessVoidEvent( new TInitEvent() );
+ SMESHGUI::GetSMESHGen()->UpdateStudy();
+ }
}
/////////////////////////////////////////////////////////////////