#-----------------------------SMESH-------------------------------------------
-
+smesh.SetCurrentStudy(salome.myStudy)
# -- Init mesh --
plane_mesh = salome.IDToObject( Id_face1)
#---------------------------------SMESH
+smesh.SetCurrentStudy(salome.myStudy)
# create the path mesh
mesh1 = smesh.Mesh(ellipse1, "Path Mesh")
idface = geompy.addToStudy(face, "Circular face")
+smesh.SetCurrentStudy(salome.myStudy)
# init a Mesh with the circular face
mesh1 = smesh.Mesh(face, "Mesh on circular face")
pass
return newnodes
-
+smesh.SetCurrentStudy(salome.myStudy)
+
# create empty mesh
mesh = smesh.Mesh()
geompy.addToStudyInFather(Box_sup, Fsup2, "Fsup")
geompy.addToStudyInFather(Box_sup, Finf2, "Finf")
+smesh.SetCurrentStudy(salome.myStudy)
+
## create a bottom mesh
Mesh_inf = smesh.Mesh(Box_inf, "Mesh_inf")
algo1D_1=Mesh_inf.Segment()
#Mesh creation
+smesh.SetCurrentStudy(salome.myStudy)
+
# -- Init --
shape_mesh = salome.IDToObject( Cut_1_ID )
print " check status ", status
# ---- launch SMESH
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the alveole
shape_mesh = salome.IDToObject( idalveole )
#-----------------------------------------------------------------------
#Meshing
+smesh.SetCurrentStudy(salome.myStudy)
my_hexa = smesh.Mesh(Result, "Sphere_Mesh")
algo = my_hexa.Segment()
algo.NumberOfSegments(NbSeg)
boxId = geompy.addToStudy(box,"box")
# ---- SMESH
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the shell
### ---------------------------- SMESH --------------------------------------
-
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the shell
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the boxe
idEdgeZ.append(geompy.addToStudyInFather(vol,edgeZ[i],"EdgeZ"+str(i+1)))
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the volume
print " check status ", status
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the compshell
shape_mesh = salome.IDToObject( idcomp )
print " check status ", status
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
print "-------------------------- create Mesh, algorithm, hypothesis"
print " check status ", status
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the compshell
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the shell
shape_mesh = salome.IDToObject( idShape )
aBox = salome.IDToObject( idbox )
# Create mesh
+smesh.SetCurrentStudy(salome.myStudy)
mesh = smesh.Mesh(aBox, "Mesh_freebord")
# -----------------------------------------------------------------------------
print "-------------------------- mesh"
+smesh.SetCurrentStudy(salome.myStudy)
# ---- init a Mesh with the geom shape
shape_mesh = blob
Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name )
# ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# -- Init --
shape_mesh = salome.IDToObject( Id_mechanic )
Id_SubFace4 = geompy.addToStudyInFather( mechanic, sub_face4, name )
# ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
# -- Init --
shape_mesh = salome.IDToObject( Id_mechanic )
print "number of Edges in mechanic : ",len(subEdgeList)
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
print "-------------------------- create Mesh, algorithm, hypothesis"
print "number of Edges in mechanic : ",len(subEdgeList)
### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
shape_mesh = salome.IDToObject( Id_mechanic )
# ---- launch SMESH
smeshgui = salome.ImportComponentGUI("SMESH")
smeshgui.Init(salome.myStudyId)
-
+smesh.SetCurrentStudy(salome.myStudy)
# ---- Creating meshes
# ---- SMESH
+smesh.SetCurrentStudy(salome.myStudy)
box = salome.IDToObject(idb)
mesh = smesh.Mesh(box, "Meshbox")
# ---- SMESH
+smesh.SetCurrentStudy(salome.myStudy)
+
# ---- Init a Mesh with the box
mesh = smesh.Mesh(box, "Meshbox")
# ---- SMESH
+smesh.SetCurrentStudy(salome.myStudy)
+
# ---- Init a Mesh with the box
mesh = smesh.Mesh(box, "Meshbox")
# ---- SMESH
+smesh.SetCurrentStudy(salome.myStudy)
mesh = smesh.Mesh(box, "Meshbox")
# Set 1D algorithm/hypotheses to mesh
import os
import os.path
+smesh.SetCurrentStudy(salome.myStudy)
+
def SetSObjName(theSObj,theName) :
ok, anAttr = theSObj.FindAttribute("AttributeName")
if ok: