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
53539: 0D Element
[modules/smesh.git]
/
doc
/
salome
/
examples
/
defining_hypotheses_ex11.py
diff --git
a/doc/salome/examples/defining_hypotheses_ex11.py
b/doc/salome/examples/defining_hypotheses_ex11.py
index be550477883fd1d0a6056f90f8fecb4c872d1b0a..dc6c3c5aece618b5f092aa6fb98e30fa73aaecd4 100644
(file)
--- a/
doc/salome/examples/defining_hypotheses_ex11.py
+++ b/
doc/salome/examples/defining_hypotheses_ex11.py
@@
-2,7
+2,15
@@
# Project triangles from one meshed face to another mesh on the same box
# Project triangles from one meshed face to another mesh on the same box
-from smesh import *
+import salome
+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)
# Prepare geometry
# Prepare geometry
@@
-19,8
+27,9
@@
geompy.addToStudy( box, 'box' )
geompy.addToStudyInFather( box, Face_1, 'Face_1' )
geompy.addToStudyInFather( box, Face_2, 'Face_2' )
geompy.addToStudyInFather( box, Face_1, 'Face_1' )
geompy.addToStudyInFather( box, Face_2, 'Face_2' )
-# Make the source mesh with Netgem2D
-src_mesh = Mesh(Face_1, "Source mesh")
+
+# Make the source mesh triangulated by MEFISTO
+src_mesh = smesh.Mesh(Face_1, "Source mesh")
src_mesh.Segment().NumberOfSegments(15)
src_mesh.Triangle()
src_mesh.Compute()
src_mesh.Segment().NumberOfSegments(15)
src_mesh.Triangle()
src_mesh.Compute()