'''
if entry is None:
return None
- import smesh
- smesh.SetCurrentStudy(self.editor.study)
+ import SMESH
+ from salome.smesh import smeshBuilder
+ smesh = smeshBuilder.New(self.editor.study)
+
meshObject=smesh.IDToObject(entry)
return meshObject
def TEST_createBoxMesh():
theStudy = helper.getActiveStudy()
- import geompy
- geompy.init_geom(theStudy)
+ import GEOM
+ from salome.geom import geomBuilder
+ geompy = geomBuilder.New(theStudy)
+
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
- import smesh, SMESH, SALOMEDS
- smesh.SetCurrentStudy(theStudy)
- import StdMeshers
+ import SMESH, SALOMEDS
+ from salome.smesh import smeshBuilder
+ smesh = smeshBuilder.New(theStudy)
+
+ from salome.StdMeshers import StdMeshersBuilder
boxmesh = smesh.Mesh(box)
Regular_1D = boxmesh.Segment()
Nb_Segments_1 = Regular_1D.NumberOfSegments(15)
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New(salome.myStudy)
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
# ---------------------------- GEOM --------------------------------------
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New(salome.myStudy)
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
# ---- define a box
from salome.smesh.smeshBuilder import GetName, TreatHypoStatus
from salome.smesh.smeshBuilder import Mesh
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
#----------------------------
# Mesh algo type identifiers
import batchmode_salome
import batchmode_geompy
import batchmode_smesh
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
smesh = batchmode_smesh.smesh
smesh.SetCurrentStudy(batchmode_salome.myStudy)
geompy.addToStudy( Face_1, "Face_1" )
smesh.SetCurrentStudy(salome.myStudy)
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
pattern = smesh.GetPattern()
Mesh_1 = smesh.Mesh(Face_1)
Regular_1D = Mesh_1.Segment()
geompy.addToStudy( Box_1, "Box_1" )
smesh.SetCurrentStudy(salome.myStudy)
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
Mesh_1 = smesh.Mesh(Box_1)
Regular_1D = Mesh_1.Segment()
Nb_Segments_1 = Regular_1D.NumberOfSegments(10)