Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
52977: Find Element by Point does not find supporting node of Ball element at group...
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex21.py
diff --git
a/doc/salome/examples/modifying_meshes_ex21.py
b/doc/salome/examples/modifying_meshes_ex21.py
index ece705c7dcd37b0a76449782562e2497641562d5..50355fd8b097e2195578535e406d8ee821345088 100644
(file)
--- a/
doc/salome/examples/modifying_meshes_ex21.py
+++ b/
doc/salome/examples/modifying_meshes_ex21.py
@@
-1,11
+1,19
@@
# Smoothing
# Smoothing
+
import salome
import salome
-import geompy
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New(salome.myStudy)
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New(salome.myStudy)
import SMESH_mechanic
import SMESH_mechanic
-smesh = SMESH_mechanic.smesh
+
#
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
# select the top face
mesh = SMESH_mechanic.mesh
# select the top face
@@
-14,7
+22,7
@@
face = faces[3]
geompy.addToStudyInFather(SMESH_mechanic.shape_mesh, face, "face planar with hole")
# create a group of faces to be smoothed
geompy.addToStudyInFather(SMESH_mechanic.shape_mesh, face, "face planar with hole")
# create a group of faces to be smoothed
-GroupSmooth = mesh.GroupOnGeom(face, "Group of faces (smooth)",
smesh
.FACE)
+GroupSmooth = mesh.GroupOnGeom(face, "Group of faces (smooth)",
SMESH
.FACE)
# perform smoothing
# perform smoothing